Undo a Git Commit - Without Losing Your Code
Think you have to reset hard or revert every time you mess up a Git commit? Nope. In this episode of Wait… Git Can Do That?, we show you how to undo your last commit without losing any changes — using git reset --soft HEAD~1. Perfect for devs who move fast, commit early, and want cleaner history. Subscribe for more Git tricks they don’t teach you in tutorials. GitKraken Desktop: gitkraken.com/git-client.