Notice
Recent Posts
Recent Comments
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

Chimy's Program

fatal: Unable to create '~/.git/index.lock': File exists. 본문

error

fatal: Unable to create '~/.git/index.lock': File exists.

chimy 2020. 3. 27. 00:12

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 commit 명령어를 실행하여 메시지를 입력하다가 강제종료하고

다시 git bash를 사용하여 commit하려고 하니 발생

 

시도1. rm -f ./.git/index.lock

 

에러파일을 제거해주니 정상적으로 다시 commit이 된다

Comments