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

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

fatal pull com gin -s sta can check 問題

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