Undo the Last Git Commit (Keep Changes) pinned Reset the last commit while keeping your staged changes intact. May 28, 2026 git cli