Listing Approved
Approved on: December 1, 2026
Reset Unpushed Commits
Reset selected unpushed commits back into the working tree for re-committing through `/wrap-up` or `/yolo`.
Editor's Note
Before proceeding, ensure that you are on the correct branch and that no changes have been pushed. The process will reset selected unpushed commits back into the working tree, allowing them to be re-committed.
When to Use It
- Resetting unpushed commits to re-commit with changes
- Preparing unpushed commits for review or rework before pushing
SKILL.md
SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use
---
name: reset
description: Soft-reset unpushed commits back into the working tree for re-committing
allowed-tools: AskUserQuestion, Bash(git log:*), Bash(git reset:*), Bash(git rev-parse:*), Bash(git status:*)
---
# Reset Unpushed Commits
Soft-reset selected unpushed commits back into the working tree so they can be re-committed through `/wrap-up`, or through `/yolo` to push them as they are.
Read `~/.claude/skills/shared/bash-rules.md` for bash command constraints.
## Context
- Unpushed commits: !`git log @{upstream}..HEAD --format="%h %ai %s" 2>/dev/null || git log origin/master..HEAD --format="%h %ai %s" 2>/dev/null`
- Working tree status: !`git status --short`
## Process
1. If **Unpushed commits** is empty, tell the user there is nothing to reset and stop.
2. **Present options** — always show each commit with its hash, timestamp, and message. Format timestamps from **Unpushed commits** as `Mon DD, HH:MM`. List in **descending** order (most recent first).
> There are **N** unpushed commit(s) on this branch. Which commits should I reset?
> 0. Don't reset — keep all commits as-is
> 1. `Jun 17, 19:13 abc1234 commit message` — this commit only
> 2. `Jun 17, 18:45 def5678 commit message` — this + all above
> ...
> N. `Jun 17, 17:00 ghi9012 commit message` — reset all unpushed commits
With a single commit, show options 0 and 1 only (option 1 shows the commit details).
- **Smart default:** If the most recent unpushed commits form a contiguous run of `fix: address code review findings`, the default (bare Enter) resets all of them (stopping before the first commit with a different message). Otherwise, the default is the most recent commit only.
3. If the user selects **0**, skip the reset and go straight to step 4.
4. **Execute on confirmation:**
```
git reset <chosen-commit>~
```
This is a soft reset to the parent of the chosen commit, putting all changes back into the working tree.
5. **Report result** — show the new working tree status:
```
git status --short
```
Tell the user they can now run `/wrap-up` (or `/yolo`) to re-commit the changes.
## Out of scope
- Do NOT create commits — that is `/wrap-up`'s or `/yolo`'s job
- Do NOT push
- Do NOT switch branches
Community Reviews & Field Notes
Tried this skill on your own project? Share the model you used and the results you got.