how to delete the last 2 commits in git code example Example: delete everythng after a certain commit git reset HEAD@{index}