4 if ( git branch|
grep "[^ ]$1$" ); then
5 echo "This branch already exists locally."
9 if ( git branch
-r |
grep "[^ ]origin/$1$" ); then
10 echo "This branch already exists remotely."
16 # Change to master, stashing any dirty working copy files
19 # Create the new branch, pull in any existing commits for it from the central server