What problem does it solve?
This Skill helps manage and synchronize multiple Git worktrees, ensuring they are up-to-date with the main branch and remote changes, thereby preventing merge conflicts and maintaining a clean commit history.
Core Features & Use Cases
- Fetch Remote Changes: Updates your local repository with the latest commits from the remote.
- Update Main Branch: Pulls the latest changes into your primary development branch.
- Rebase Feature Branches: Integrates changes from the main branch into your feature branches using a rebase strategy for a linear history.
- Merge Feature Branches: Alternatively, merges changes from the main branch into feature branches, preserving branch history.
- Conflict Resolution Guidance: Provides steps to resolve merge conflicts when they arise.
- Use Case: You're working on a long-running feature branch and need to incorporate the latest updates from
main before submitting a pull request. This skill guides you through fetching, updating main, and rebasing your feature branch.
Quick Start
Use the worktree-sync skill to rebase the current feature branch onto the latest main branch.