git-squash-merge

Installation
SKILL.md

git-squash-merge

Overview

This skill implements a specific workflow for squashing all changes since a target commit into one clean commit:

  • Commit pending changes
  • Save current HEAD hash
  • Hard reset to target commit
  • Squash merge the saved changes
  • Generate clean commit message and commit

Warning: This uses git reset --hard which is destructive. Only use when user explicitly requests via trigger phrase. Old commits remain in reflog.

Workflow Instructions

1. Initial Analysis

  • Run git status to check for uncommitted changes
  • Run git log --oneline -5 to understand recent history
  • Identify the target hash from user message
Installs
3
GitHub Stars
1
First Seen
Mar 23, 2026
git-squash-merge — russbrown00/agent-skills