版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/randompeople/article/details/81870424
问题描述
从远程git上拉取某一个分支,然后报错,拉取不了这个分支。
拉取分支的命令:
git checkout -b hotfix_20180820origin/hotfix_20180820
其中hotfix_20180820
是分支名。
报错
fatal: 'origin/hotfix_20180820' is not a commit and a branch
'hotfix_20180820' cannot be created from it
解决
重新拉取数据,git pull
,然后再切回分支