天天看點

git checkout 遠端分支error

比如我有一個遠端分支​

​origin/test​

​​,正常情況下​

​git checkout test​

​的輸出應該是

Branch 'test' set up to track remote branch 'test' from 'origin'.
Switched to a new branch 'test'      

但是我這裡輸出的是

error: pathspec 'test' did not match any file(s) known to git.