Resources:
http://sheshui.me/articles/git-quickly-tutorial-20120517
Http://stackoverflow.com/questions/9282632/git-index-lock-file-exists-when-i-try-to-commit-but-cannot-delete-the-file
My notes:
I'm working on an Ubuntu environment. Window remote
1 if the Operation window (not the console) is opened remotely under window, enter the. Git directory to delete the Index.lock file, and the commit will automatically generate the Index.lock again after deletion. Unable to submit.
2 Use Putty console operation, enter the. git directory to perform rm-f index.lock delete Index.lock Although it can be deleted, but it will be generated every time. Unable to submit
3 in the. Git sibling directory, execute rm-f. Git/index.lock (or rm-f git/index.lock) after deletion can be submitted. Success!
Go Git–fatal:unable to create ' Xxx/.git/index.lock ': File exists solution