git 拉取遠程分支報錯(fatal: '' is not a commit and a branch '' cannot be created from it)


問題描述
從遠程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 ,然后再切回分支


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM