오늘도 은퇴는 1주일 연기중...

  • 홈
  • 태그
  • 방명록

git pull 1

git pull - error: cannot lock ref

pull 받으려고 `git pull` 했더니, 오류 메시지만 반환.error : cannot lock ref 'refs/remotes/origin/xxxxxx branch': is at xxxxxxxxxxxxxxxxx but expected yyyyyyyyyyy remote 브랜치 중에 뭔가 강제로 변경된 부분이 있는데, local 브랜치의 ref정보와 달라서 제대로 pull을 못받는 현상이 발생한 것으로 보임. 강제로 원격 브랜치 정보로 로컬 브랜치 ref를 업데이트 해준다.  (local에 유효하지 않은 것을 제거)아래 두 명령어 모두 동일하게 작동.> git remote prune origin> git fetch --prune 위의 명령어로 local ref정보를 remote기준으로 변경하고, pu..

development 2024.08.14
이전
1
다음
더보기
반응형
  • 분류 전체보기 (8)
    • development (7)
      • front-end (4)
    • etc (1)
      • 취미 (1)

Archives

Calendar

«   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

Copyright © Kakao Corp. All rights reserved.

  • freesens.com

티스토리툴바