[Git] There isn't anything to compare.

Purple·2022년 2월 6일
1

Error Handling Log

목록 보기
6/9

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

master로 push를 하면 커밋 결과가 제대로 적용되지 않고, 새로운 master 브랜치만 생긴다.
master와 main 브랜치와 Compare하면 히스토리가 달라서 비교할게 없다고 한다...

$ git checkout master //입력
branch 'master' set up to track 'origin/master'.
새로 만든 'master' 브랜치로 전환합니다
$ git branch main master -f //입력
$ git checkout main //입력
'main' 브랜치로 전환합니다
$ git push origin main -f //입력
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/boraborayoon/color-cube
+ 19a1cc4...3b86da8 main -> main (forced update)

profile
다시 보면, 더 많은 것들이 보인다.

0개의 댓글