git rebase -i –root、git rm –cached .DS_Store、git add .、git commit –amend、git rebase –continueの順番に実行すると、コミットの内容を変更することができる
git rebaseでeditを選択し指定したコミットのファイルを削除して変更を反映させるためにはgit commit –amendを実行してgit rebase –continueなどをする必要がある