sync-default-branch-and-clean
CommunitySync default branch & clean local branches
Authorryosukesuto
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the process of updating your local default branch (like main or master) to match the remote and cleans up old, merged, or orphaned local branches, keeping your repository tidy and up-to-date.
Core Features & Use Cases
- Default Branch Synchronization: Fetches the latest changes from the remote and rebases your local default branch.
- Local Branch Cleanup: Identifies and removes local branches that have been merged into the default branch or are no longer present on the remote.
- Worktree Management: Safely handles and cleans up associated worktrees for merged branches.
- Use Case: After a period of active development with multiple feature branches, run this Skill to quickly bring your main branch up-to-date and remove all the now-obsolete feature branches, preventing clutter and potential merge conflicts later.
Quick Start
Run the sync-default-branch-and-clean skill to update your default branch and remove merged local branches.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sync-default-branch-and-clean Download link: https://github.com/ryosukesuto/dotfiles/archive/main.zip#sync-default-branch-and-clean Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.