mirror of
https://github.com/tj/git-extras.git
synced 2026-09-13 08:56:19 -04:00
git-create-branch: bug fix for branch creation use HEAD instead of origin
This commit is contained in:
parent
c45e2b8f5f
commit
e3320e2671
|
|
@ -3,7 +3,6 @@
|
|||
branch=$1
|
||||
test -z $branch && echo "branch required." 1>&2 && exit 1
|
||||
|
||||
git push origin origin:refs/heads/$branch
|
||||
git push origin HEAD:refs/heads/$branch
|
||||
git fetch origin
|
||||
git checkout --track -b $branch origin/$branch
|
||||
git pull
|
||||
|
|
|
|||
Loading…
Reference in a new issue