nonoswitch's diary

気が向いた時に書き込むやつ

gitでlockファイルが存在してpull出来ないと言われた

git pullしようと思ったら、こんなメッセージが...

 

 

fatal: Unable to create '/hogehoge/.git/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.

 

どうやらファイルロックが解除されなかったらしい。

rm /hogehoge/.git/index.lock

を実行、再度git pullすることで解決でしたー。