拉取本地不存在的远程分支报错“...not a commit..”解决
$ git checkout -b dev2 origin/dev2fatal: ‘origin/dev2’ is not a commit and a branch ‘dev2’ cannot be created from it分析:这样证明本地分支没有跟远程分支连接连接解决:使用git fetch 更新remote索引验证:使用git branch -a 可以查看到远程分支然后再执行git checkout -b dev2 origin/dev2就可以了...
原创
2020-08-16 07:49:43 ·
1418 阅读 ·
0 评论