106.08.17 解決git無法add

錯誤訊息:
fatal: Unable to create '/home/user/pro/selfpro/learn_rust/.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 -f ./.git/index.lock



參考資料:
关于git 无法commit问题

沒有留言:

張貼留言

^ Top