git push force master 깃 강제 푸쉬하기
🖥️

git push force master 깃 강제 푸쉬하기

Tags
dev
Property
Published
May 25, 2021
slug
git-force-push

이전 커밋으로 되돌리기

git reset 커밋번호
 

되돌린 후 강제 push

! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@~~~~.git
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 -f origin master