git-merge
Installation
SKILL.md
Git Merge & Conflict Resolution
Handle complex git operations: merges, cherry-picks, rebases, and conflict resolution.
Parse the user's input to determine the action:
$git-mergeor$git-merge resolve— detect and resolve current conflicts$git-merge branch <name>— merge a branch into current, handle conflicts$git-merge cherry-pick <commit>...— cherry-pick with conflict handling$git-merge rebase <base>— non-interactive rebase onto base$git-merge abort— abort in-progress merge/rebase/cherry-pick$git-merge status— show current merge/rebase/cherry-pick state
Prerequisites
- Verify we're in a git repository (
git rev-parse --is-inside-work-tree) - If not in a git repo, tell the user and stop