【Q&A】
无法 add,以下报错:
fatal: Unable to create ‘F:/Desktop/Git_test/.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 文件。
rm –f .git/index.lock