if i stash my code then delete previous commits code example Example: git revert commit but keep changes git reset HEAD^