기록장

[git] Another git process seems to be running in this repository 오류 해결 방법 본문

IT 지식/에러 및 해결

[git] Another git process seems to be running in this repository 오류 해결 방법

HJJJJJ 2022. 7. 29. 15:48
728x90
오류 메세지:

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.

 

 

Another git process seems to be running in this repository 

오류 해결 방법 

 

git commit, push 과정 도중 갑자기 에러가 발생

 같은 repository에서 다른 git 프로세스가 동작하고 있다는 문구입니다.
해결 방법은 아주 간단합니다. 

해당 위치 터미널에 가서 아래의 명령어를 입력합니다.
index.lock이라는 파일을 제거하면 다음 git 동작이 잘 작동합니다.

rm ./.git/index.lock
728x90
Comments