编辑
修复git无法提交的问题
本文访问次数:0

有时提交git的时候会提示以下错误

fatal: Unable to create '/Users/zongren/xcodeprojects/yishop/.git/index.lock': 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.

解决办法很简单,删除index.lock文件即可

cd .git
rm index.lock
没有任何评论