git: error: cannot lock ref, error: cannot lock ref
git pull
시 다음과 같은 오류가 발생합니다.$ git pull
error: cannot lock ref 'refs/remotes/origin/branch': 'refs/remotes/origin/branch/repair' exists; cannot create 'refs/remotes/origin/branch'
From git.microsoft.com:office2019/excel
! [new branch] branch -> origin/branch (unable to update local ref)
error: some local refs could not be updated; try running
'git remote prune origin' to remove any old, conflicting branches
해결 방법은 제시에 따라 실행하는 것이다.
git remote prune origin
우리는 우리의branch가push->open->approve->merge에서 대체적으로 이 몇 가지 과정을 거쳐야 한다는 것을 알고 있다. 우리의branch가merge에서 master에 도착한 후에github의branch를 삭제할 것을 요구하지만, 우리의branch는 일반적으로 아무도 관여하지 않는다. 시간이 길어지면 로컬의branch는 한 무더기로 쌓인다. 이 명령은 로컬에서 아직 삭제하지 않은 branch를 함께 제거하는 것이다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Heroku H10/503 오류 해결 방법 - 이야기오후 2시 30분까지 내 이해 수준에 따라 배포할 준비가 된 내 코드 를 완성했습니다. 몇 달 전에 플랫폼에 Node.js 앱을 배포하여 을 따르기로 결정했습니다. How to solve Heroku H10 erro...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.