Code in Life
[Git] git pull upstream master을 입력했을 때 에러 본문
환경 : Windows10 Pro
에러 : fatal: couln't find remote ref master
최근에 원격저장소로 부터 동기화를 하려고 git pull을 시도했으나 에러가 나서 찾아본 결과,
2020년 10월 초 github에서는 master 브랜치를 main 브랜치로 이름이 바뀌었음을 알게되었다.
(+개인, 단체, 기업 설정에서 기본 브랜치 이름을 설정할 수도 있다. github.com/settings/repositories)
따라서 master 대신에 원격저장소에 설정되어있는 기본 브랜치로부터 git pull을 시도하면 된다.
'에러 및 이슈' 카테고리의 다른 글
[Git] Can't automatically merge (0) | 2020.12.09 |
---|---|
[springboot] Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8) (0) | 2020.12.06 |
[Git] git pull 명령시 에러 (0) | 2020.12.06 |
[springboot] Failed to configure a DataSource. 'url' attribute... (0) | 2020.12.06 |
InteliJ에서 Github 연동 오류 (0) | 2020.11.30 |
Comments