git reset --soft HEAD~1

📦 GitHub
✨ The Prompt Phrase
Which Git command undoes your most recent commit while keeping all the changes from that commit neatly staged and ready to be re-committed?

~git reset --soft~ HEAD~1

💻 Code Preview

📦 All-in-One Code
<a href="https://gitreset--softhead.base44.app"> gitreset--softhead.base44.app</a>
Live Preview