首页 > 其他 > 详细

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

时间:2018-10-31 21:08:47      阅读:1205      评论:0      收藏:0      [点我收藏+]

问题描述
从远程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)

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!