原文: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