以下の内容はhttps://paper.hatenadiary.jp/entry/2024/05/06/184215より取得しました。


【エラー解決】『Another git process seems to be running in this repository』のメッセージが出てコミットやプッシュができない

現象

VSCodeにてcommitメッセージを書きコミットしている最中に停電が起き、再起動後にコミットができず以下のメッセージが出た。

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 try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.

原因

コミットの途中でターミナルが閉じられたことにより、ロックファイルが破損していた(コミット途中の状態のままになっていた)。

解決方法

.git/index.lock.git/.COMMIT_EDITMSG を削除する。

※検索した感じ、同時に複数のターミナルでgitコマンドを実行する際も同様のエラーが見られるみたいです。




以上の内容はhttps://paper.hatenadiary.jp/entry/2024/05/06/184215より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14