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'

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM