git undo changes after last commit code example Example: undo last commit but keep changes git reset @~