TIL로 redux toolkit을 튜토리얼을 하고 git remote repo에 올리고 develop 브랜치에서 main 브랜치로 pull request 도중 에러 메시지가 발생했다.
**There isn't anything to compare. Nothing to compare, branches are entirely different commit histories
main and develop are entirely different commit histories.**
git clone을 거치지 않고 따로 CRA를 한 다음 git remote add 로 해당 원격 저장소를 연결했더니 생긴 문제인것 같다.
해결
git checkout master
git branch main master -f
git checkout main
git push origin main -f