월하점
월하점의 개발 공부 일지
월하점
전체 방문자
오늘
어제
  • 분류 전체보기 (96)
    • Back-end (3)
    • PROJECT (1)
    • CS (15)
      • Operating System (0)
      • Network (4)
      • Data Structure (7)
      • Algorithm (0)
      • Database (4)
    • Problem Solving (52)
    • Programming Languages (1)
      • Javascript (0)
      • Python (1)
      • JAVA (0)
    • Codestates BEB 4기 (7)
    • Blockchain (12)
    • Linux (2)
    • Git (1)
    • 잡다한 (2)

공지사항

인기 글

태그

  • javascript
  • baekjoon
  • Python
  • node.js
  • 프로그래머스
  • django
  • CS
  • 자료구조
  • SWEA
  • 알고리즘
  • 네트워크

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
월하점

월하점의 개발 공부 일지

  • HOME
  • GUEST
  • WRITE
Git

[GIT] error: Rename from /.git/index.lock to /.git/index failed

2020. 10. 1. 01:42

git add 시도 중 에러가 떴다.

vscode를 끄고 관리자 권한으로 실행해도 여전히 에러가 떴다.

 


<에러 메시지>

 

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

 

 

<해결 방법>

$ rm -f ./.git/index.lock

관리자권한으로 git bash 를 실행 후 위의 명령어를 입력하여 파일을 삭제했다.

git 명령어가 다시 잘 실행된다.

저작자표시 비영리 변경금지 (새창열림)
    월하점
    월하점
    개발 공부를 기록합니다. 웹을 위주로 공부하며 컴퓨터과학 이론도 함께 정리할 계획입니다.

    티스토리툴바