git-merge-linear
CommunityMerge task branches to main with clean, linear history.
Authorcowwoc
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Merging feature or task branches into main can often introduce messy merge commits, complicating the Git history and making debugging or future reverts harder. Ensuring a clean, linear history requires careful validation and specific Git commands that are easy to misuse. This Skill automates the process for a pristine main branch.
Core Features & Use Cases
- Pre-Merge Validation: Automatically verifies that the task branch is ready for merge (e.g., exactly one squashed commit, current branch is
main), preventing common merge errors. - Fast-Forward Merge: Executes a
--ff-onlymerge to guarantee a linear history, preventing unnecessary merge commits and keeping the commit graph clean. - Post-Merge Verification: Confirms that the history remains linear and that the correct commit has been added to
main, ensuring the merge was successful and as intended. - Use Case: After completing a feature on a task branch and squashing all commits into one, you need to merge it into
main. This Skill ensures the merge is clean, linear, and validated, preventing accidental non-fast-forward merges or merging an un-squashed history, saving you from Git headaches.
Quick Start
From the 'main' branch, use the git-merge-linear skill to merge the 'implement-formatter-api' task branch.
Dependency Matrix
Required Modules
git
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: git-merge-linear Download link: https://github.com/cowwoc/styler/archive/main.zip#git-merge-linear Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.