diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 05:59:43 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 05:59:43 +0200 |
| commit | e392883589ef37d5b9b8f7068c6d491faa163694 (patch) | |
| tree | 4aaa5a40c5c5842616044168f3d2462306a1b3d4 /content/notes/git-push-multiple-origins.md | |
| parent | b3dfbe8b70b870399dc335b8dcf028bb9a3955de (diff) | |
| download | mitjafelicijan.com-e392883589ef37d5b9b8f7068c6d491faa163694.tar.gz | |
Fixed some content
Diffstat (limited to 'content/notes/git-push-multiple-origins.md')
| -rw-r--r-- | content/notes/git-push-multiple-origins.md | 3 |
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 | ||
| 9 | Sometimes you want to push to multiple origins at once. This is useful if you | 9 | Sometimes you want to push to multiple origins at once. This is useful if you |
| 10 | have a mirror of your repository on another server. You can do this by adding | 10 | have a mirror of your repository on another server. You can do this by adding |
| 11 | multiple push urls to your git config. After this you can push to all origins | 11 | multiple push urls to your git config. This is a shorthand for command above. |
| 12 | at once by using `git push --all`. This is a shorthand for command above. | ||
| 13 | 12 | ||
| 14 | ```sh | 13 | ```sh |
| 15 | git config --global alias.pushall '!sh -c "git remote | xargs -L1 git push --all"' | 14 | git config --global alias.pushall '!sh -c "git remote | xargs -L1 git push --all"' |
