Skip to content

Git:Index.lock

Git에서 commit도중 아래와 같은 에러 메시지가 출력될 수 있다.

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

이럴경우 아래와 같이 index.lock를 제거해 주면 된다.

$ rm -f ./.git/index.lock

See also

Favorite site