Skip to content

Instantly share code, notes, and snippets.

@SynCap
Created March 20, 2020 02:15
Show Gist options
  • Save SynCap/f948d611f75f0721746264fab6458564 to your computer and use it in GitHub Desktop.
Save SynCap/f948d611f75f0721746264fab6458564 to your computer and use it in GitHub Desktop.
Push all remote repositories at the same time
git config --global alias.pushall '!f(){ for var in $(git remote show); do echo "pushing to $var"; git push $var; done; }; f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment