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."
14 # Change to master, stashing any dirty working copy files
17 # Create the new branch, pull in any existing commits for it from the central server
22 HOOK_POST_CREATE_BRANCH
=.
/`git rev-parse --show-cdup`.socialgit
/hooks
/post-create-branch
23 $
(ls $HOOK_POST_CREATE_BRANCH 2>/dev
/null
) && $HOOK_POST_CREATE_BRANCH