Git の履歴を変えたいときに使うコマンド
履歴の全ての author, committer を変更
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='yourname'; GIT_AUTHOR_EMAIL='your@email.com'; GIT_COMMITTER_NAME='yourname'; GIT_COMMITTER_EMAIL='your@email.com';" HEAD
履歴から特定のファイルを削除
git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch foo.txt" --prune-empty HEAD
最初のコミットを含む全てのコミットを rebase
git rebase -i --root