내 경우는 기존 repository dev 브런치에 코드를 commit 하다가,
main이 아닌 다른 브런치는 잔디 표시가 뜨지 않는다는 것을 발견하고
새로운 repository를 파서 기존 코드들을 옮김.
git remote -v
git remote remove origin
git commit -m "first commit"
git branch -M main
git remote add origin 새 repository 주소
git push -u origin main
다행히 기존 커밋이력까지 모두 옮겨져서 잔디도 이전날짜까지 모두 심어짐.
실패횟수가 갈수록 줄어들어서 다행이다.(❁´◡`❁)