Notice
Recent Posts
Recent Comments
05-11 02:26
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

-

[Github] master → main 강제 병합 본문

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

 

반응형
Comments