本文共 398 字,大约阅读时间需要 1 分钟。
使用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 processesare terminated then try again. If it still fails, a git processmay have crashed in this repository earlier:remove the file manually to continue.
解决办法:
1. 删除可能占用的进程2. 如果还不行 rm .git/index.lock
参考:
转载地址:http://fgmli.baihongyu.com/