有时候在git中checkout -b 出现如下报错


$ git checkout -b test --track origin/master
fatal: Cannot update paths and switch to branch 'test' at the same time.
Did you intend to checkout 'origin/master' which can not be resolved as commit?


解决方法



git remote -v


git fetch origin


最后执行自己的git checkout -b 

相关文章:

  • 2022-12-23
  • 2021-10-08
  • 2022-03-05
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-09-05
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
相关资源
相似解决方案