#!/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