master -> main 병합시키기

zzzzwso·2023년 9월 12일
0

git

목록 보기
2/2

master -> main 브랜치 병합시키기

"There isn't anything to compare. Nothing to compare, branches are entirely different commit histories"

github 문구

발생 이유

기본 브랜치가 master로 잡혀있기 때문.

해결방법

git checkout master
git branch main master -f
git checkout main
git push origin main -f

원격 저장소의 브랜치 삭제

git push origin --delete master

로컬에서도 삭제해주자.

로컬 저장소의 브랜치 삭제

git branch [-d] 브랜치명
profile
HI there

0개의 댓글