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
GitKraken CLI:
gitkraken.com/cli
GitLens for VS Code:
gitkraken.com/gitlens
Git Integration for Jira:
gitkraken.com/git-integration-for-jira
Git Blog:
gitkraken.com/blog
Git Cheat Sheet:
gitkraken.com/pdfs/git-basics-cheat-sheet