git切換分支報錯:error: pathspec 'origin/XXX' did not match any file(s) known to git.

項目上有一個分支test,使用git branch -a看不到該遠程分支,直接使用命令git checkout test報錯以下:git error: pathspec 'origin/test' did not match any file(s) known to git. 解決方法: 一、執行命令git fetch取回全部分支的更新web 二、執行git branch -a能夠看到test分支
相關文章
相關標籤/搜索