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.

 

解决方法:

rm -f ./.git/index.lock

你可能感兴趣的:(git)