728x90
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '......'
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.
위와 같은 에러가 발생할 경우 원격저장소에 강제 push 하는 방법
- 기존명령: git push -u origin master
- 강제명령: git push -u origin master --force
충돌을 무시하기 때문에 잘 확인하여 진행할 필요가 있다.
728x90
'Git' 카테고리의 다른 글
[GitHub] private repository commit 잔디 보이게하는 방법 (0) | 2024.08.14 |
---|---|
[Git] branch 명령어 (0) | 2024.08.05 |