how to remove commits from git bash code example Example: delete everythng after a certain commit git reset HEAD@{index}