Android Studio提交GIT时,Another git process seems to be running in this repository, e.g. an editor open

不羁的心 提交于 2020-01-24 04:53:17

Android Studio提交GIT时,报异常如下:

File exists. Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.

解决方案:

在项目的根目录,也是.git的所在目录执行(Android Studio Terminal 执行):
rm -f .git/index.lock
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!