Undoing the last commit keeps changes staged, allowing you to modify or re-commit without losing any work, perfect for tweaking messages or adding updates..