Git
[Github] master → main 강제 병합
choiht
2023. 1. 23. 13:15
반응형
깃허브 repository를 새로 만들고 main이 아닌 다른 브랜치에 먼저 커밋을 했을 때,
아래와 같은 문제가 나오는 경우 해결 방법
"There isn't anything to compare. Nothing to compare, branches are entirely different commit histories"
git checkout master
git branch main master -f
git checkout main
git push origin main -f
반응형