Dev & Engineering ✓ Microsoft · Official

Git Branch Sync

Safely sync an upstream branch or publish the current session branch to a remote.

49/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 194k
Last updated
11d ago
License
MIT
git-syncgit-rebasegit-pushbranch-management
+2upstream-trackingconflict-handling

What does this skill do, and when should you use it?

This skill synchronizes the current session branch with its upstream branch or publishes it to a remote repository. It checks for uncommitted changes and upstream configuration before fetching, comparing branch divergence, rebasing, pushing, or setting tracking information. It explicitly avoids unapproved force-pushes and skipped push hooks. When conflict resolution is unclear, it asks the user to decide.

Checks for uncommitted work; determines whether the current branch has an upstream; with an upstream, runs git fetch, checks ahead/behind counts, and rebases when needed; pushes local commits after a successful rebase; without an upstream, publishes with git push -u <remote> HEAD; then verifies working-tree cleanliness, sync state, and upstream configuration.

Good fit
  • A developer wants to update the current branch from its upstream and confirm whether it is already synchronized.
  • A developer needs to push local commits to an already configured upstream branch.
  • A developer is publishing a branch for the first time and wants its remote tracking branch configured.
  • A rebase conflict, rejected push, or potentially destructive history operation requires an explicit user decision.

How do you install this skill?

Before you use it
  • Before execution, confirm whether working-tree changes should be committed and whether the selected remote and upstream are correct; committing is currently the default prerequisite.
  • Rebase and push can alter or publish repository history; pause for user direction on divergence, authentication failure, hook failure, or conflicts.
  • The documentation does not address mainland-China network reachability or provide dedicated automated regression evidence for this skill.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
  • Local filesystem
Install first
  • Git

The README identifies the skill at src/vs/sessions/skills/sync/SKILL.md, but it does not document a standalone installation command. For the full repository, follow the repository's own process for obtaining microsoft/vscode; the source does not specify where an individual skill should be installed or how a client loads it.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/microsoft/vscode.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/src/vs/sessions/skills/sync" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • sync the current branch,
  • pull the latest upstream changes and rebase,
  • push the current branch,
  • publish this branch and set its upstream.

In a client that supports the skill, make a request such as “sync the current branch,” “pull the latest upstream changes and rebase,” “push the current branch,” or “publish this branch and set its upstream.” Provide an explicit decision when conflict resolution or a force-push approval is requested.

What are this skill's strengths and limitations?

Pros
  • Covers both branches with an existing upstream and first-time branch publication.
  • Checks for uncommitted changes before synchronization and validates the final Git state.
  • Clearly prevents unapproved force-pushes, skipped push hooks, and unrequested commit-history rewriting.
Limitations
  • Requires Git, remote repository access, and a usable working-tree state.
  • Uncommitted changes must first be committed with the /commit skill; this skill does not define that commit workflow.
  • It does not make ambiguous conflict decisions automatically and will not force-push after a history-rewriting rebase without approval.
  • The source does not provide standalone installation steps or a test suite.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Git Branch Sync this page ✓ Microsoft · Official 49 · Use with care ★ 194k 11d ago MIT
Upstream Branch Sync ✓ Microsoft · Official 35 · Not recommended ★ 194k 11d ago MIT
Branch Merge Assistant ✓ Microsoft · Official 49 · Use with care ★ 194k 11d ago MIT
Worktree Manager Skill 59 · Recommended ★ 1.5k 8mo ago —
CODEOWNERS PR Splitter ✓ NVIDIA · Official 57 · Use with care ★ 3.6k 11d ago Apache-2.0

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
49/ 100 5-point scale 2.5 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust13 / 25 · 2.6/5

The skill explicitly forbids unapproved force-pushes, skipped hooks, and rewriting or dropping commits without asking, and directs the user to decide when conflict resolution is unclear. However, it instructs the agent to invoke a commit skill for uncommitted changes, while fetch, rebase, and push have external repository effects; stepwise confirmation, sensitive-data guidance, detailed data-flow disclosure, and a stronger rollback model are missing, so points are deducted.

2Reliability8 / 20 · 2.0/5

The workflow is mostly internally consistent and includes upstream detection, conflict handling, rebase abort, and final state checks. It does not sufficiently specify diagnosable behavior for missing commit tooling, divergent histories, remote or authentication failures, hook failures, or incomplete pushes, and static review cannot reproduce the key paths, so the score remains moderate.

3Adaptability10 / 15 · 3.3/5

Triggers cover syncing, pulling, rebasing, pushing, publishing, and setting an upstream, with a clear primary audience and scenario. Boundaries for read-only previews, non-Git branches, and complex divergence are not explicit, and Chinese-language interaction or mainland-China network reachability is not addressed, so points are deducted.

4Convention8 / 15 · 2.7/5

The document has clear metadata, guidelines, workflow, and validation sections. Repository context supplies MIT licensing, version information, and verified Microsoft provenance, but the skill lacks installation or dependency notes, examples or FAQs, changelog/versioning, named maintenance responsibility, and an independent update path; assumptions about the commit skill are also unexplained.

5Effectiveness6 / 15 · 2.0/5

For ordinary branch synchronization and publication, the command sequence is directly actionable and includes post-operation checks. Automatic handling of uncommitted changes, remote selection, divergent branches, and failure recovery still requires human judgment, and the files do not verify representative outputs or comparative benefit, so the static score is limited.

6Verifiability4 / 10 · 2.0/5

The skill's commands, constraints, and validation criteria are auditable, and the repository contains general CI and test infrastructure. The supplied CI evidence does not cover this skill's key paths, and there are no dedicated SKILL.md tests or third-party execution records, so verifiability is limited.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 5b3e1be7be9e Review evidence[1][2][3][4][5][6][7][8][9][10][11]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Will this skill force-push?
No. It does not use --force or --force-with-lease without explicit user approval.
What happens if the branch has no upstream?
The skill determines the publishing remote and runs git push -u <remote> HEAD; if multiple remotes exist, it asks the user which one to use.
Does it resolve every rebase conflict automatically?
No. It asks the user when conflict resolution is unclear, and the rebase can be aborted if the user requests it.
Does using it cost anything?
The source does not state separate pricing for the skill. Its Code - OSS repository is distributed under the MIT license.

More skills from this repository

All from microsoft/vscode

Dev & Engineering ✓ Microsoft · Official

Upstream Branch Sync

Rebase a stale session branch onto the latest upstream changes.

★ 194k FS 35 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Branch Merge Assistant

Safely merges session work from a topic branch back into its base branch.

★ 194k FS 49 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

Author Contribution Audit

Trace an author’s files across a branch, including contributions carried through renames.

★ 194k FS 48 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Configuration Policy Maintainer

Standardize VS Code policy registration, export, and validation.

★ 194k FS 59 Recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Commit Assistant

Creates repository-style commit messages and safely commits code changes.

★ 194k FS 56 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Agents Window Sessions

Safely implement and repair VS Code Agents window features.

★ 194k FS 56 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Chat Customizations Editor Skill

Guides developers through safe changes and testing for VS Code’s chat customization management UI.

★ 194k FS 52 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

Memory Leak Audit

Systematically find and fix listener, lifecycle, and disposable leaks in VS Code code.

★ 194k FS 52 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

Session Code Review

Review the current session's code changes and place actionable findings directly on the relevant lines.

★ 194k FS 51 Use with care 11d ago
Automation & Ops ✓ Microsoft · Official

CI Failure Fixer

Diagnose pull request CI failures and iterate toward a fix.

★ 194k FS 48 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Hygiene Checks

Catch VS Code commit-blocking style and hygiene issues before the work is declared complete.

★ 194k FS 48 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Failure Diagnosis

Diagnose and validate intermittent VS Code Electron smoke-test failures in Azure DevOps.

★ 194k FS 45 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Session Pull Request Assistant

Checks session changes and creates a GitHub pull request through GitHub MCP.

★ 194k FS 43 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Create Draft Pull Request

Validate the current session’s changes and open a draft PR through GitHub MCP.

★ 194k FS 38 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Existing Pull Request Updater

Sync the branch, run checks, and publish new changes to an existing pull request.

★ 194k FS 32 Not recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Tool Rename Compatibility Check

Protect existing prompts and tool configurations when built-in tools are renamed.

★ 194k FS 63 Recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Copilot Chat OpenTelemetry Instrumentation

A repository-specific guide for consistent OpenTelemetry instrumentation in Copilot Chat.

★ 194k FS 60 Recommended 11d ago
Design & Frontend ✓ Microsoft · Official

VS Code Design Philosophy

Turn vague UI discomfort into concrete fixes using shared values, principles, and design moves.

★ 194k FS 58 Recommended 11d ago
Dev & Engineering ✓ Microsoft · Official

Agent Host E2E Test Assistant

Maintain VS Code Agent Host end-to-end tests with strict replay fixtures.

★ 194k FS 56 Use with care 11d ago
Dev & Engineering ✓ Microsoft · Official

VS Code Integrated Browser Architecture

A practical architecture guide for safely changing VS Code's cross-process integrated browser.

★ 194k FS 56 Use with care 11d ago

Related skills