Skip to content

Instantly share code, notes, and snippets.

@cthos
Created August 12, 2014 14:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cthos/f241e181fba10501b8aa to your computer and use it in GitHub Desktop.
Save cthos/f241e181fba10501b8aa to your computer and use it in GitHub Desktop.
Git Push to all Remotes
function git-push-all() {
for i in `git remote`; do
echo "Pushing to $i"
git push $i $1
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment