undo changes to my uncommitted local repo git code example Example: git undo all changes git reset --hard