Git Undo
Undo the last commit but keep changes staged.
- Undo the last commit but keep the file changes in the staging area.
- Command:
git reset --soft HEAD~1 - This allows you to fix the commit message or add missing files before committing again.
Git undo is an AI agent skill from the GitHub repository toilahuongg/Shopify-Agents-Kit. Undo the last commit while keeping changes staged. Use when you need to fix a commit message or add missing files.
.claude/skills/git-undo/SKILL.md.cursor/rules/git-undo.md.agents/skills/git-undo/SKILL.mdUndo the last commit but keep changes staged.
git reset --soft HEAD~1