原文:git 切換分支時,報:Unable to create 'D:/xxx/.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 p

Unable to create D: xxx .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 ...

2022-01-26 18:01 0 955 推薦指數:

查看詳情

fatal: Unable to create 'D:/learngit/.git/index.lock': File exists.的解決方法

今天在學習git的時候,發現在執行git commit -m "add distributed"的時候,報了個錯。 這個應該是因為 git操作的時候修改了一些文件導致的操作沖突被鎖住了 所以我的解決方法是 rm -f /.git/index.lock' 刪掉該文件 再運行就好了 ...

Tue Apr 16 16:19:00 CST 2019 0 1319
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM