Administrator@9JSIDEOJQKANIGJ MINGW32 /e/Git (master) $ git commit -m “test” fatal: Unable to create ‘E:/Git/.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 -rf ./.git/index.lock
新闻热点
疑难解答