What problem does it solve?
This Skill automates the process of updating your local git branch with the latest changes from its remote counterpart. It intelligently detects whether you're working in a fork or an origin repository and applies the correct fetch and merge/pull strategy, ensuring your code is always up-to-date without manual commands.
Core Features & Use Cases
- Intelligent Remote Detection: Automatically determines if your repository is a fork or an origin and adjusts its sync strategy accordingly.
- Automated Fetch & Merge: Executes the necessary
git fetch and git merge (or git pull --rebase) commands to bring in the latest changes.
- Working Tree Validation: Ensures your working directory is clean or handles potential conflicts, providing a smooth update experience.
- Use Case: Before starting new work or creating a pull request, simply say "sync my branch." This Skill will fetch the latest changes from your remote, merge them into your current branch, and confirm your branch is fully synchronized.
Quick Start
Sync my current branch with the remote.