새소식

300x250
2. 웹개발/Error모음

[Git error] Another git process seems to be running in this repository

  • -
728x90

[Git error] Another git process seems to be running in this repository 

Git Commit을 하던 도중 갑자기 다음과 같은 에러 메세지가 발생하고, 커밋이 되지 않는 경우가 발생 하였다.

아마 git bash에서 명령어로도 처리하고, IDEA에서도 git 명령서 수행을 하다보니 꼬인 것 같다.

 

 

ex1) 에러 메세지
fatal: Unable to create '리파지토리경로/.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.

 

ex2) 에러 메세지
fatal: Unable to create '리파지토리경로/.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.


웹로직이도 특정 상황에 계속 락이 걸려서 해당 파일을 제거 해줬는데, git도 해당 파일을 제거하니 정상 동작 된다.

또다른 방법이 있는진 모르겠지만, 나와 같은 경우 다음과 같이 처리하여 해결 하였다.

 

▶ 해결방법

rm -f ./.git/index.lock

 

300x250
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.