Error: pathspec '*' did not match any file(s) known to git.

git切换分支报错

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

解决办法如下:

plumm@MACY-PC MINGW64 /f/study/spring (master)
$ git checkout develop
error: pathspec 'develop' did not match any file(s) known to git. plumm@MACY-PC MINGW64 /f/study/spring (master)
$ git fetch
From https://github.com/plummoon/spring
* [new branch] develop -> origin/develop plumm@MACY-PC MINGW64 /f/study/spring (master)
$ git checkout develop
M leo.spring.rest/.idea/workspace.xml
Branch develop set up to track remote branch develop from origin.
Switched to a new branch 'develop'
上一篇:四种常见的 POST 提交数据方式 专题


下一篇:jpda