scripts

My personal collection of scripts
git clone git://src.gearsix.net/scriptsscripts.zip
Log | Files | Refs | Atom | README | LICENSE

git-push-all.sh (raw) (297B)


   1 #!/usr/bin/env sh
   2 # description: push all branches to 'origin' remote
   3 
   4 if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
   5 	echo "Usage: git-pull-all"
   6 	echo ""
   7 	echo "push all branches to 'origin' remote"
   8 	exit
   9 fi
  10 
  11 for branch in $(git branch | sed 's/\*\? \+//')
  12 do git push -u origin "$branch"
  13 done
  14