mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge pull request #183 from chernjie/master
`git-create-branch`: use HEAD instead of origin.
This commit is contained in:
commit
128bc2d5f8
|
|
@ -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