[Error] local 저장소 bitbucket 연결 중 만난 [none-fast-forward]

옹잉·2024년 7월 9일
0

처음에 master 브랜치로 push 해버려서 bitbucket 저장소 삭제, .git 폴더 삭제 후 처음부터 다시 시작하려고 했다.

$ git remote add origin https://계정@bitbucket.org/이하 주소(HTTPS URL)

저장소 연결 후 git push 받았는데 아래와같은 오류가 났다.

local 저장소와 bitbucket 저장소가 관련 기록이 없어서 생기는 오류라고 한다..

$ git pull origin main --allow-unrelated-histories

입력했더니 해결됐다!


참고 자료

profile
틀리더라도 🌸🌈🌷예쁘게 지적해주세요💕❣️

0개의 댓글