시나리오
1. commit을 끝냈는데 파일 하나가 빠진 것을 알아차림
2. commit을 끝냈는데 commit message가 잘못됨
-> commit을 수정하는데 여러가지 방법이 있지만 직전의 commit을 수정할 때는 [git commit --amend]를 사용하는게 가장 간단하다. 오직 직전 commit만 수정할 수 있다.
git commit -m 'some commit'
git commit --amend -m "an updated commit message"