Git Sync with Rebase

VerifiedSafe

Sync your local branch with the remote repository using rebase to maintain a linear history. Update your work with the latest changes from the team.

Sby Skills Guide Bot
DevelopmentBeginner
306/2/2026
Claude Code
#git#sync#rebase#version-control

Recommended for

Our review

Syncs the local branch with the remote repository using rebase.

Strengths

  • Maintains a linear history without merge commits.
  • Simple two-step process: fetch then rebase.
  • Handles conflicts by guiding the user to resolve them.

Limitations

  • Does not handle uncommitted local changes.
  • Conflict resolution can be complex for beginners.
  • Only works if the remote branch already exists.
When to use it

Use this skill when you need to update your local branch with the latest remote changes without creating a merge commit.

When not to use it

Do not use it if you have uncommitted local changes you are not ready to integrate, or if you prefer a standard merge over rebase.

Security analysis

Safe
Quality score85/100

The skill only runs 'git fetch' and 'git pull --rebase', which are standard, non-destructive version control commands. No data exfiltration, system modification, or safety bypass is involved. The allowed-tools scope (Bash(git:*)) is broader than needed but the skill's instructions are benign.

No concerns found

Examples

Sync current branch with remote via rebase
Sync my current branch with remote using rebase.
Pull latest changes with rebase
Pull the latest changes from origin with rebase for this branch.

name: git-sync description: Sync with remote repository using pull --rebase. Use when you need to update your local branch with remote changes. disable-model-invocation: true allowed-tools: Bash(git:*)

Git Sync

Sync local branch with remote using rebase.

  1. Fetch the latest changes from the remote repository.

    • Command: git fetch origin
  2. Pull and rebase the current branch on top of the remote branch.

    • Command: git pull origin HEAD --rebase
    • If there are conflicts, resolve them, then git rebase --continue.
Related skills