###当切换分支遇到以下问题的时候
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 .git/index.lock 删除锁
git checkout dev-name