~!) To determine the <commit>-ID of the desired commit, you may use some kind of git log --format=oneline combined with grep.git rebase --interactive <commit>~
<commit>-ID), change the pick to edit, save and exit the editor.git rm <unwanted-file>
git commit --amend
git rebase --continue



