git checkout 报错

  有时 git checkout 分支名 的时候会报错:error: pathspec 'dev' did not match any file(s) known to git 。 这是因为本地没有更新过,git不知道有当前分支的存在,执行git pull,然后在 git checkout 分支名 就能切换到当前分支。

  

猜你喜欢

转载自www.cnblogs.com/ding-dong/p/12955425.html