diff options
Diffstat (limited to '.local/bin/git-push-all')
-rwxr-xr-x | .local/bin/git-push-all | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/git-push-all b/.local/bin/git-push-all new file mode 100755 index 0000000..d12a53a --- /dev/null +++ b/.local/bin/git-push-all @@ -0,0 +1,12 @@ +#!/bin/sh + +branch="${1:-master}" + +[ $# -gt 0 ] && shift + +printf "Pushing %s branch to all remotes...\n" "$branch" + +for remote in $(git remote) +do + git push "$remote" "$branch" "$@" +done |