

a lock file already exists in the repository, which blocks this operation from completing.
Git_Hub :: 갑자기 커밋이나 푸쉬 풀 안되고 이러한 메세지 뜰경우 해결방법

1. 일단 뭔가 부딪히는 현상같은거니 lock파일 삭제 걍 해야함!
2. 커밋이든 뭐든 하려는 해당 폴더로 직접 이동
3. 해당 폴더에서 우클릭 - here git bash 로 들어간다.
4. 해당 명령어를 작성해서 lock파일을 그냥 지워버린다. \
rm -rf ./.git/index.lock

5. git desktop 이거나 vs라면 한번 껏다 킨다.
6. 정상 가동되고, 부딫히는 파일은 desktop같은 경우 물어봐준다. 그 중 내가 원하는 방법을 선택하면 끝.
도움이 빠르게 되었다면
공감만 눌러주고 가주면 좋겠어요. (흔적만이라도 남겨줘...)
참고
A lock file already exists in the repository, which blocks this operation from completing. - Kodlogs
Problem : I am new to GIT. I have recently created a new repository with github desktop but I couldn’t add local repository for some reason in my react app. When I try to commit I get the error message as follows: “A lock file already exists in the rep
kodlogs.com
728x90
반응형