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

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

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

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

报错数据

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

解决
从新拉取数据,git pull ,而后再切回分支static

相关文章
相关标签/搜索