Advanced Git Rebase Workflow

•
2
•

Streamlines complex Git history management using automated fixup workflows and a reconstruction-based approach to eliminate merge conflicts.

This skill provides a robust framework for managing Git history within Claude Code, centered on the 'reconstruct, don't merge' principle to prevent common rebase failures. It offers detailed patterns for squashing fixup commits, recovering from failed autosquashes, and performing sophisticated history edits like splitting a single working-tree change across multiple historical commits. By prioritizing file state reconstruction over patch replaying, it helps developers maintain a clean, professional commit history while significantly reducing the time spent resolving manual merge conflicts.

주요 기능

01Conflict-free 'replay-and-reformat' patterns for code style changes
02Procedures for moving and splitting file changes between commits
03Automated fixup and autosquash command generation
04Detailed recovery procedures using Git reflog for safety
052 GitHub stars
06Audit tools to prevent mid-rebase conflicts before they happen

사용 사례

01Cleaning up feature branches by squashing experimental commits into logical units
02Retroactively applying linting or formatting without breaking existing code logic
03Splitting a complex working-tree edit into atomic commits for cleaner code reviews