1. 程式人生 > >【Error】fatal: Unable to create '.../.git/index.lock':

【Error】fatal: Unable to create '.../.git/index.lock':

使用git add時遇到錯誤:

fatal: Unable to create '/Volumes/APFS-case-sensitive/Tech/Pwn/[email protected]/.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.

解決辦法:

rm .git/index.lock

參考:http://tutorialspots.com/how-to-fix-error-another-git-process-seems-to-be-running-in-this-repository-3397.html