问题: 今天在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