aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/git-push-all
blob: d12a53a287f1dbd658a923c39ab9cdb90e0da8ec (plain)
1
2
3
4
5
6
7
8
9
10
11
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