1. 程式人生 > >Github bug: a lock file already exists in the repository

Github bug: a lock file already exists in the repository

解決方案:

This may be an old reply but I'm hoping this is more useful on next who need this solution.

On linux/unix/gitbash/cygwin, try

rm -f .git/index.lock

On Windows Command Prompt, try:

del .git\index.lock

Hope that helps, I found this solution here: Fatal: Unable to create ‘…git/index.lock’ File exists