꿀팁
Git 디폴트 브랜치가 변경됨으로써 인해 생기는 push 이슈
왕방토
2022. 12. 28. 15:28
728x90
"There isn’t anything to compare. main and master are entirely different commit histories."

구세주~~
https://kim6394.tistory.com/254
[Git] default 브랜치는 master에서 main으로 변경되었음
현재 많은 Git 명령어 정보들이 'master' 브랜치를 이용하고 있다. 하지만 최근 프로젝트 생성 시 기본 브랜치가 'main'으로 변경되면서 혼동되는 경우들이 존재한다. "There isn't anything to compare. Nothing
kim6394.tistory.com
main <- master 하고싶다면????
이렇게 하면 된다고 한다
git checkout master
git branch main master -f
git checkout main
git push {저장소이름} main -f