問題描述
從遠程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