종종 git에서 commit 또는 push 도중 오류로 git 명령이 동작하지 않는 경우가 있습니다.
fatal 에러로 'index.lock 파일이 존재함'과 함께 아래와 비슷한 문구가 나옵니다.
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.
이럴 때 해결 방법입니다.
간단합니다.
✅ Fatal : index.lock
해결방법
local의 git 저장소 폴더로 이동하고
index.lock 파일을 삭제하면 됩니다.
삭제 후 정상 동작하는 것을 확인할 수 있습니다.
✅ Fatal : index.lock - 끝
관련 포스팅
