# git add したfileを直前のコミットにまとめる 
$ git commit --amend --no-edit

# branchのツリー構造を表示
$ git log --graph

# 特定コミットを無かったことにする
$ git revert <コミットid>
※ :q でvminを抜けたら完了