git clone 에러 fatal: multiple updates for ref 'refs/remotes/origin/main' not allowed
·
Tool/Git
대학교에서 자바 수업 중 교수님께서 깃허브에 올려주시는 소스코드를 클론하려고 했다. 근데 왠걸? fatal: multiple updates for ref 'refs/remotes/origin/main' not allowed 이 에러가... 계속 뜨는 거에요.. ㅠㅠㅠㅠ 진짜 몇날 몇일을 검색하다가 드뎌 해결함 ㅠㅠㅠ gitconfig 파일 보기git config --list## 또는 git config -l 그러면 gitconfig 리스트가 쭉 뜨는데 그 중 이게 문제였다!remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* 이거를 제거해줘야하기 때문에 git config --global --unset remote.origin.fetch요거를 입력해주면 f..