git push 에러 / Updates were rejected because the tip of your current branch is behind

flobeeee·2022년 4월 11일
0

시행착오

목록 보기
35/43

git push 했더니 아래 에러메시지가 떴다.
원격과 로컬이 맞지 않아서 생기는 문제처럼 보였다.

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 pull --rebase origin develop

명령어로 해결했다.


참고문서 : Git 에러 # Updates were rejected because the tip of your ...

어떤 명령어인지 읽어보기 : git pull --rebase

profile
기록하는 백엔드 개발자

0개의 댓글