git Problem

1. The error message is: fatal: Unable to the Create 'D: /LearnGit/.git/index.lock': File EXISTS. 

Solution: turn the next .git in the file, which has a index.lock file. After deleting continue operating git no problem. Later learned, the windows should be the management of the process there is a locking mechanism, under normal circumstances, at lock, the end of the process, and then unlock the process. But because I am forced to shut down running git, git led to the collapse, has not had time to unlock locked index.lock and still exist. When I use the git add, git has existed index.lock found the file, causing an error.


Published 51 original articles · won praise 4 · views 50000 +

Guess you like

Origin blog.csdn.net/qq_34075348/article/details/79880368