Updates the local branch by fetching and rebasing on the remote.

Install

mkdir -p .claude/skills/git-sync-toilahuongg && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12271" && unzip -o skill.zip -d .claude/skills/git-sync-toilahuongg && rm skill.zip

Installs to .claude/skills/git-sync-toilahuongg

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Sync with remote repository using pull --rebase. Use when you need to update your local branch with remote changes.
115 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Fetch latest changes from a remote repository
  • Pull and rebase the current branch onto the remote branch
  • Resolve merge conflicts during rebase
  • Synchronize local branch with remote changes
  • Maintain a clean local git history

How it works

The skill executes `git fetch origin` to retrieve remote changes and then `git pull origin HEAD --rebase` to integrate those changes into the current local branch by replaying local commits on top of the remote history.

Inputs & outputs

You give it
A local git repository with a configured remote
You get back
A local branch synchronized with the remote, with a rebased history

When to use git-sync

  • Pull latest changes
  • Sync feature branch
  • Clean local git history

About this skill

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.

When not to use it

  • When a merge commit history is preferred over a rebased history
  • When there are uncommitted changes that should not be included in the rebase
  • When working on a shared branch where rebasing might disrupt collaborators

Limitations

  • Requires manual conflict resolution if conflicts occur during rebase.
  • The rebase operation rewrites commit history, which can impact shared branches.
  • The skill assumes 'origin' as the remote name.

How it compares

This skill automates the `git pull --rebase` workflow, providing a cleaner, linear history compared to a standard `git pull` which creates merge commits.

Compared to similar skills

git-sync side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
git-sync (this skill)06moReviewBeginner
github-workflow-automation112moReviewAdvanced
testing-workflow169moReviewIntermediate
github-actions-templates73moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

Search skills

Search the agent skills registry