Git AssistantPowered by Groq
How do I undo the last commit but keep my changes?
Use git reset --soft HEAD~1. This moves HEAD back one commit while keeping all changes staged. You can then edit and re-commit.
$ git reset --soft HEAD~1What if I already pushed it?
Create a revert commit instead — it's safe for shared branches since it doesn't rewrite history.
$ git revert HEADAsk a git question...
Instant answers powered by Groq
Syntax-highlighted command examples
Conversational follow-ups
Explains what each flag does
Concepts covered
10 core Git operations explained visually — from your first commit to advanced rebasing.