참조: https://uncle-bae.blogspot.com/2017/02/git-pull.html
Git을 이용하여 pull을 수행할때 다음과 같은 오류가 날 수 있다.
오류상황 :
error: unable to resolve reference refs/remotes/origin/xxxx_file: No such file or directory
From git+ssh://remoteserver/~/test
! [new branch] xxxx_file -> origin/xxxx_file (unable to update local ref)
error: unable to resolve reference refs/remotes/origin/split-css: No such file or directory
! [new branch] xxxx_file2 -> origin/xxxx_file2 (unable to update local ref)
다음 명령어를 이용하면 불필요하게 꼬인 파일을 제거하여 정상으로 pull을 당길 수 있다.
$ git gc --prune=now
$ git remote prune origin
'개발관련 > 기타' 카테고리의 다른 글
깃을 초기화 하고 삭제하기 (0) | 2024.11.04 |
---|---|
Prisma - 객체 간의 관계 설정, 1:N, 1:1, N:M (0) | 2024.09.26 |
git cannot lock, cannot create 에러 (0) | 2024.09.25 |
Git - Already exists in the index 문제 (0) | 2024.09.09 |
Git Submodule (0) | 2024.09.09 |