I get the following output when I try to commit my changes to my obsidian git repo, For reference, I get the below output in DevTools
plugin:obsidian-git:411 obsidian-git: Error:
致命错误:无法创建 '/run/media/wangx/STORE N GO/SNotes/.git/index.lock':文件已存在。
似乎另外一个 git 进程在这个仓库中运行,例如:'git commit' 命令打
开了一个编辑器。请确认所有进程都已经关闭然后重试。如果仍然报错,
可能之前有一个 git 进程在这个仓库中异常退出:
手动删除这个文件再继续。
at Object.action (plugin:obsidian-git:150:11265)
at Fq.exec (plugin:obsidian-git:150:11761)
at eval (plugin:obsidian-git:149:6943)
at new Promise (<anonymous>)
at ww.handleTaskData (plugin:obsidian-git:149:6832)
at ww.attemptRemoteTask (plugin:obsidian-git:149:6488)
at async ww.attemptTask (plugin:obsidian-git:149:5970)
displayError @ plugin:obsidian-git:411
commit @ plugin:obsidian-git:400
await in commit
eval @ plugin:obsidian-git:395
handleTask @ plugin:obsidian-git:103
addTask @ plugin:obsidian-git:103
s9 @ plugin:obsidian-git:395
El @ plugin:obsidian-git:391
Translation: (Couldn’t create file index.lock, it already exists.) Seems another git process is running; ensure all processes are closed then retry. If not, then try deleting the index.lock file manually.
[wangx@wangx-acer SNotes]$ ls -laR | grep lock
[wangx@wangx-acer SNotes]$ ps aux | grep git
wangx 11440 0.0 0.0 9732 6348 pts/0 S+ 13:02 0:00 grep --color=auto git
[wangx@wangx-acer SNotes]$
When I checked, there seems to be no index.lock file, or any file named “lock” at all. May I please know what this issue entails and if there is any possible solution?
For context, Git in the Terminal works fine, and I’m on EndeavourOS Linux.
Thanks.