标签:取数据 解决 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