码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-10-31 21:19:16      阅读:2263      评论:0      收藏:0      [点我收藏+]

标签:取数据   解决   com   拉取   cannot   xxx   mit   not   git   

问题描述
从远程git上拉取某一个分支,然后报错,拉取不了这个分支。
拉取分支的命令:

git checkout -b xxx-static-19 origin/xxx-static-19

其中xxx-static-19是分支名。

报错

fatal: ‘origin/xxx-static-19‘ is not a commit and a branch ‘xxx-static-19‘ cannot be created from it

解决
重新拉取数据,git pull ,然后再切回分支

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

标签:取数据   解决   com   拉取   cannot   xxx   mit   not   git   

原文地址:https://www.cnblogs.com/princesong/p/9885857.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!