Git Sync with Rebase

VerifiedSafe

Sync your local branch with remote repository using pull --rebase. Useful for integrating remote changes while maintaining a linear history.

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

Recommended for

Our review

Syncs the local branch with the remote repository using rebase.

Strengths

  • Quick and simple operation to update the local branch.
  • Uses rebase for a clean, linear history.
  • Interactive conflict resolution via git rebase --continue.

Limitations

  • Only works for the current branch and the remote named 'origin'.
  • May not be suitable if the user prefers merging over rebasing.
  • Conflicts can be tricky for beginners.
When to use it

When you need to update your local branch with remote changes while maintaining a linear history.

When not to use it

When you prefer a traditional merge or are working on a shared branch where rebasing is discouraged.

Security analysis

Safe
Quality score80/100

The skill only runs git fetch and git pull --rebase, which are common version control operations with no destructive or exfiltrating behavior. It is restricted to the Bash(git:*) tool, preventing execution of arbitrary commands.

No concerns found

Examples

Sync current branch with remote
Sync my local branch with remote using pull --rebase.
Fetch and rebase
Fetch latest from origin and rebase my current branch on top of remote HEAD.

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