728x90

++ 마지막 commit 수정하기

git commit --amend

로 마지막 커밋 메시지 들어가서 수정 하기

 

esc => :wq 로 저장 후 종료

git push --force

수정한 commit 강제 push

 

git log

잘 수정되었나 log 확인


git log

 

로 삭제할 commit 확인

 

git reset HEAD^

 

로 가장 마지막에 한 commit 삭제

 

git push -f origin 브랜치명

 

github에도 알리기

728x90

+ Recent posts