git Err : Updates were rejected because the tip of your current branch is behind 오류해결하기

🍒Jooooooo_eun🍒·2022년 4월 15일
0

깃 초기세팅 중 이런 오류가 발생했다

hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

깃 초기세팅에 맞게 해봤지만 ㅠㅠ 도무지 뭐가 문젠지 몰라서 서칭해보니 데이터 유실문제때문에
git push --set-upstream origin main 가 먹히지 않는거라고 한다

git push -u origin +main 를 해주면된다고 한다.

오류 해결 끝!

profile
먹은만큼 성장하고 싶은 초보 개발자의 끄적끄적 개발메모장 ✍

0개의 댓글