delete all changes from a commit git on master code example Example: delete everythng after a certain commit git reset HEAD@{index}