天天看点

git 拉取远程分支报错(fatal: '' is not a commit and a branch '' cannot be created from it)

问题描述

从远程git上拉取某一个分支,然后报错,拉取不了这个分支。

拉取分支的命令:

git checkout -b hotfix_20180820   origin/hotfix_20180820
           

其中

hotfix_20180820

是分支名。

报错

fatal: 'origin/hotfix_20180820' is not a commit and a branch
 'hotfix_20180820' cannot be created from it
           

解决

重新拉取数据,

git pull

,然后再切回分支

社招、校招内推时刻

本人在阿里巴巴工作,业余时间做了社招、校招的公众号,可以内推大家,免筛选直接面试,公众号的一些文章也帮助大学、研究生的一些同学了解校招、了解名企,工作几年的同学想换工作也可以找我走社招内推,同时大家对文章有问题,也可以公众号找我,扫码关注哦!

git 拉取远程分支报错(fatal: '' is not a commit and a branch '' cannot be created from it)

继续阅读