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'

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2021-03-28
  • 2021-09-22
  • 2022-12-23
  • 2022-02-18
相关资源
相似解决方案