Lines Matching refs:branch
3 # Create a new upstream user branch.
6 # contrib/git-add-user-branch.sh [<personal-prefix>/]<branch-name> <base>
11 echo " $0 [<personal-prefix>/]<branch-name> <start-point>"
31 branch=$(echo "$1" | sed -r "s:(${userpfx}/)?(.*)$:\2:")
34 # Sanity check the new branch argument. If there is no '/', then the
36 if [ -z "$branch" ]
41 git push users/${userpfx} ${start}:refs/users/${user}/heads/${branch}
43 git branch ${userpfx}/${branch} remotes/users/${userpfx}/${branch}
44 echo "You are now ready to check out ${userpfx}/${branch}"
45 echo "To push the branch upstream use:"
46 echo " git push users/${userpfx} ${userpfx}/${branch}"