Skip to content
Back to skills

Git Sync

ASecurity

Brings your current branch up to date with its upstream by rebase or merge, resolves small conflicts and reports what changed.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill git-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-git-sync/badge)](https://www.skillsdirectory.com/skills/workspace-templates-git-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-sync
description: Brings your current branch up to date with its upstream by rebase or merge, resolves small conflicts and reports what changed.
argument-hint: "[branch to sync with, default upstream]"
user-invocable: true
disable-model-invocation: true
---

Sync the current branch with: $ARGUMENTS (its upstream, or origin/main if none).

1. Run `git status` and stop if the tree is dirty; offer `git stash` and wait for approval. Run `git fetch --all --prune`.
2. Show `git rev-list --left-right --count HEAD...<target>` and the incoming commit subjects.
3. Choose the method. Rebase if the branch is local or has only your commits. Merge if the branch is pushed and others may have based work on it. State the choice and why.
4. Run it. On conflict, list the files; resolve only trivial ones (imports, whitespace, adjacent edits) and explain each. Stop and ask on anything touching logic. Never use `--strategy-option theirs` or `ours` blindly.
5. After a rebase, run the tests. Do not push. If the branch was already pushed and you rebased, say that a `--force-with-lease` push is needed and wait for the user to ask for it.

Report commits applied, files changed upstream, conflicts resolved, and the test result.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.