gitsync
FreeNo executable scriptsNot checkedSync both git repos in this project: opentraces (root) and closedtraces (kb/). Runs the full lifecycle for each — pull, check status, commit any pending…
by JayFarei★ 107 GitHub starsAbout this skill
gitsync
Sync both repos in this project: opentraces (root) and closedtraces (kb/).
Repos
| Repo | Path | Remote |
|---|---|---|
| opentraces | /Users/jayfarei/src/tries/2026-03-27-community-traces-hf |
github.com/JayFarei/opentraces |
| closedtraces | /Users/jayfarei/src/tries/2026-03-27-community-traces-hf/kb |
github.com/JayFarei/closedtraces |
Lifecycle (run for each repo in order)
1. Pull (rebase)
git -C <path> pull --rebase
If the pull produces a merge conflict, stop immediately and report it to the user with the conflicted files. Do not attempt to resolve conflicts automatically.
2. Check status
git -C <path> status --short
If clean, skip to the next repo — nothing to commit.
3. Commit pending changes
Show the user a brief summary of what's pending (file list + diff stat), then commit:
git -C <path> add -A
git -C <path> commit -m "$(cat <<'EOF'
<descriptive message summarizing the changes>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
EOF
)"
Write a meaningful commit message. Do not use generic messages like "sync" or "update files".
Look at git diff --cached to understand what changed and summarize it.
4. Push
git -C <path> push
If push is rejected (non-fast-forward), pull --rebase first then push again.
Output format
After completing both repos, report a one-liner per repo:
opentraces: pulled (2 commits), committed "fix(quality): ..." (3 files), pushed
closedtraces: already up to date, committed "update discussion log" (1 file), pushed
Or if nothing needed:
opentraces: already up to date, nothing to commit
closedtraces: already up to date, nothing to commit
Important notes
- Always pull before committing to avoid push rejections
- The two repos are fully independent — a failure in one does not block the other
- Never force-push either repo
- Commit message must describe the actual changes, not just say "sync"
Install gitsync in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the gitsync skill do?
Sync both git repos in this project: opentraces (root) and closedtraces (kb/). Runs the full lifecycle for each — pull, check status, commit any pending changes, push. Use when the user says "gitsync", "sync repos", "sync both repos", "commit and push both", or "sync opentraces and closedtraces".
How do I install the gitsync skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the gitsync skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic