github-sync
Installation
SKILL.md
GitHub Sync
Overview
Use scripts/sync-repo.sh instead of rewriting ad-hoc git fetch and git pull logic. The script resolves the sync target, creates a local tracking branch when needed, and only performs fast-forward updates.
Workflow
- Check whether the user wants the remote default branch, a specific branch, or the current branch.
- Prefer
originunless the user explicitly asks for another remote. - Run the bundled script:
scripts/sync-repo.sh
scripts/sync-repo.sh --branch main
scripts/sync-repo.sh --current