Git Undo Last CommitSen Hongo|Published on 2022/05/25|gitgit reset --soft head~1 This command deletes the last commit and leaves everything in staged.