Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

似乎另外一个 git 进程在这个仓库中运行,例如:'git commit' 命令打 开了一个编辑器。 #5

Closed
englianhu opened this issue Sep 21, 2022 · 1 comment

Comments

@englianhu
Copy link
Contributor

englianhu commented Sep 21, 2022

englianhu@Scibrokes:~/文档/GitHub/binary.com-interview-question-data$ git init
重新初始化已存在的 Git 仓库于 /home/englianhu/文档/GitHub/binary.com-interview-question-data/.git/
englianhu@Scibrokes:~/文档/GitHub/binary.com-interview-question-data$ git add -A
fatal: 无法创建 '/home/englianhu/文档/GitHub/binary.com-interview-question-data/.git/index.lock':文件已存在。

似乎另外一个 git 进程在这个仓库中运行,例如:'git commit' 命令打
开了一个编辑器。请确认所有进程都已经关闭然后重试。如果仍然报错,
可能之前有一个 git 进程在这个仓库中异常退出:
手动删除这个文件再继续。
englianhu@Scibrokes:~/文档/GitHub/binary.com-interview-question-data$ sudo rm -f ./.git/index.lock

参考文献:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant