Skip to content

Instantly share code, notes, and snippets.

@vzool
Last active February 12, 2022 09:34
Show Gist options
  • Save vzool/4dbbf10f52f08a9631cf9c3ec0ca8bb4 to your computer and use it in GitHub Desktop.
Save vzool/4dbbf10f52f08a9631cf9c3ec0ca8bb4 to your computer and use it in GitHub Desktop.
Alias to push all branches to all remotes with just `git pushall`
#/bin/bash
git config --global alias.pushall '!git remote | xargs -L1 git push --all'
@nightcrawler-
Copy link

nightcrawler- commented Feb 12, 2022

To push all tags with git pushtags
git config --global alias.pushtags '!git remote | xargs -L1 git push --tags'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment