1. 程式人生 > >【Error】Another git process seems to be running in this repository, e.g.

【Error】Another git process seems to be running in this repository, e.g.

使用git add時遇到錯誤:

fatal: Unable to create '.../.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.

解決辦法:

1. 刪除可能佔用的程序
2. 如果還不行  rm .git/index.lock

 

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