aboutsummaryrefslogtreecommitdiff
path: root/content/notes
diff options
context:
space:
mode:
Diffstat (limited to 'content/notes')
-rw-r--r--content/notes/git-push-multiple-origins.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/content/notes/git-push-multiple-origins.md b/content/notes/git-push-multiple-origins.md
index 7b12148..228f857 100644
--- a/content/notes/git-push-multiple-origins.md
+++ b/content/notes/git-push-multiple-origins.md
@@ -8,8 +8,7 @@ draft: false
8 8
9Sometimes you want to push to multiple origins at once. This is useful if you 9Sometimes you want to push to multiple origins at once. This is useful if you
10have a mirror of your repository on another server. You can do this by adding 10have a mirror of your repository on another server. You can do this by adding
11multiple push urls to your git config. After this you can push to all origins 11multiple push urls to your git config. This is a shorthand for command above.
12at once by using `git push --all`. This is a shorthand for command above.
13 12
14```sh 13```sh
15git config --global alias.pushall '!sh -c "git remote | xargs -L1 git push --all"' 14git config --global alias.pushall '!sh -c "git remote | xargs -L1 git push --all"'