본문 바로가기
git

[git] git 소스 push + 오류 해결 - Updates were rejected ~

by aesup 2023. 10. 16.
728x90
git init
git remote add origin (깃 url)
git add .
git commit -m "최초 커밋"
git push -u origin master

git push 시 respository 충돌로 인해 하위 에러 발생 

 

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 -u origin +master

+ 단 커밋내용이나 기존 내용 유실주의

728x90