git reset revert commit code example Example: undo reset commit git git reflog //to get commitID git reset #commitID