git切换分支报错

###当切换分支遇到以下问题的时候

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

###通过下列步骤解决

  1. rm .git/index.lock 删除锁
  2. git checkout dev-name

转载于:https://my.oschina.net/u/1988355/blog/825497

你可能感兴趣的:(git切换分支报错)