git revert but allow for changes before commit code example Example: git revert commit but keep changes git reset HEAD^