Last active
February 12, 2022 09:34
-
-
Save vzool/4dbbf10f52f08a9631cf9c3ec0ca8bb4 to your computer and use it in GitHub Desktop.
Alias to push all branches to all remotes with just `git pushall`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
git config --global alias.pushall '!git remote | xargs -L1 git push --all' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To push all tags with
git pushtags
git config --global alias.pushtags '!git remote | xargs -L1 git push --tags'