$ git log
$ git reset --soft HEAD^ // 직전 commit 취소
$ git reset --mixed HEAD^ // 직전 commit 취소
$ git reset HEAD^ // 직전 commit 취소
$ git reset HEAD~2 // 마지막 2개의 commit을 취소
$ git reset --hard HEAD^ // 직전 commit 취소
$ git push origin [branch name] -f
✅ git commit 메세지 수정하기
ex. 직전 commit 메세지인hello
를hi
로 수정하고 싶을 때$ git commit --amend -m "hi" $ git push -f // master를 원격 저장소(origin)에 강제 push