卡住在Windows上的Git:无法签出,无法存储,无法提交 [英] Stuck on Git on Windows: Can't checkout, can't stash, can't commit
本文介绍了卡住在Windows上的Git:无法签出,无法存储,无法提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
致命:无法创建/索引。锁定:文件存在。如果当前没有其他git进程正在运行,这可能意味着git进程早些时候在此存储库中崩溃。确保没有其他git进程正在运行,并手动删除文件以继续。
手动删除index.lock后,我得到:
从.git / index.lock重命名为.git / index失败。我应该再试一次吗? (y / n)
git checkout master:
从.git / index.lock重命名为.git / index失败。我应该再试一次吗? (y / n)
git commit通过GitHub:
无法创建新的提交
解决方案使用所有软件问题的通用修复程序解决此问题:重新启动计算机。
I'm stuck... If I do git stash I get:
Fatal: Unable to create /index.lock: File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.
After manually removing index.lock, I get:
Rename from .git/index.lock to .git/index failed. Should I try again? (y/n)
git checkout master:
Rename from .git/index.lock to .git/index failed. Should I try again? (y/n)
git commit via GitHub:
Unable to create a new commit
What can I do?
解决方案
Solved it using the universal fix for all software problems: restarted the computer.
这篇关于卡住在Windows上的Git:无法签出,无法存储,无法提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文