how to remove changes that are not commit yet code example Example: git revert commit but keep changes git reset HEAD^