git-sync-main
CommunitySafely sync local main with origin/main
Author3balljugglerYu
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the process of synchronizing your local main branch with its remote counterpart (origin/main) after a merge, ensuring a clean and safe post-merge state.
Core Features & Use Cases
- Fast-forward Pull: Updates your local
mainbranch to matchorigin/mainusing a fast-forward merge. - Safe Branch Cleanup: Automatically deletes your local branch only if the corresponding remote branch has already been removed.
- Safety First: Prevents accidental data loss by stopping if the working tree is dirty, if the current branch is
main, or if the remote branch still exists.
Quick Start
Use the git-sync-main skill to synchronize your local main branch with the remote.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: git-sync-main Download link: https://github.com/3balljugglerYu/ai_coordinate/archive/main.zip#git-sync-main 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.