問題: 今天在checkout項目的時候報了以下錯誤git
error: pathspec '...' did not match any file(s) known to git.fetch
解決方案:spa
先執行:git fetch 把新分支信息拉到本地,可是不拉codecode
在執行:git checkout it
經常使用的git命令:io
git statusfile
git log --onelineerror
git branch -avstackoverflow
git reset --hard項目
git rebase
參考:http://stackoverflow.com/questions/5989592/git-cannot-checkout-branch-error-pathspec-did-not-match-any-files-kn