.git/index.lock file exists 문제 해결하는 방법

남양주개발자

·

2020. 12. 4. 13:42

728x90
반응형

.git/index.lock file exists 문제 해결하는 방법

git add 명령어를 사용하면 아래와 같은 에러가 발생하는 경우가 생깁니다.

fatal: Unable to create '{your-file-path}/.git/index.lock': File exists.

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.

해결방법

rm -rf 명령어로 .git/index.lock 파일을 직접 제거함으로써 간단하게 문제를 해결할 수 있습니다.

rm -rf ./git/index.lock
728x90
반응형
그리드형

💖 저자에게 암호화폐로 후원하기 💖

아이콘을 클릭하면 지갑 주소가자동으로 복사됩니다