Git Linear Merge

•
56
•

Merges task branches into base branches with a clean, linear history directly from a git worktree.

Git Linear Merge is a specialized skill for Claude Code designed to streamline the final stages of the development workflow. It automates the process of merging completed tasks from isolated worktrees into base branches using a fast-forward approach, ensuring a strictly linear git history without unnecessary merge commits. The skill prioritizes repository integrity by performing critical safety checks, including divergence detection and infrastructure file protection, while also handling commit squashing and environment cleanup automatically.

Key Features

01Fast-forward base branches without requiring a checkout
02Mandatory safety checks for branch divergence and accidental file deletions
03Automated cleanup of git worktrees and temporary task branches
04Workflow preference enforcement via PROJECT.md configuration
0556 GitHub stars
06Automatic squashing of multiple task commits into a single clean entry

Use Cases

01Merging changes from isolated development environments without manual branch switching
02Maintaining a clean and readable 'one-commit-per-feature' repository history
03Standardizing git merge procedures across a development team using AI guidance