Git SVN错误:一个Git进程在早期崩溃了 [英] Git SVN error: a Git process crashed in the repository earlier
问题描述
我只是试图对Git master进行修改。从我读到的,似乎这个想法是删除锁定文件。消息说:
$ b
I was just trying to commit changes to the Git master. From what I have read, it seems that the idea is to delete the lock file. The message says:
确保没有其他Git进程正在运行并手动删除文件
make sure no other Git processes are running and remove the file manually
也许有人知道,要移除哪个文件以及如何移除?
Perhaps someone knows, which file to remove and how to remove?
推荐答案
有问题的文件可能是 .git / index.lock
并且它应该是安全的,只要删除它,如果你没有其他的git进程运行。确保一个git-svn命令没有挂起。
The file in question is likely .git/index.lock
and it should be safe to just remove it if you have no other git processes running. Make sure a git-svn command isn't hanging.
PS我通常的解决git-svn问题的方法是重新创建仓库。费时,但您可以在尝试解决问题的同时做到这一点。在你和git之间进行一场小小的比赛。当然,这只有在你没有完成提交时才有效。
PS My usual approach to fixing git-svn problems is to make a fresh pull of the repository. Time consuming, but you can do it in parallel with trying to fix the problem. Have a little race between you and git. Of course, this only works if you didn't have unpushed commits.
这篇关于Git SVN错误:一个Git进程在早期崩溃了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!