git-sync
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.zipInstalls 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.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
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.
-
Fetch the latest changes from the remote repository.
- Command:
git fetch origin
- Command:
-
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.
- Command:
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| git-sync (this skill) | 0 | 6mo | Review | Beginner |
| github-workflow-automation | 11 | 2mo | Review | Advanced |
| testing-workflow | 16 | 9mo | Review | Intermediate |
| github-actions-templates | 7 | 3mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
testing-workflow
amo-tech-ai
Comprehensive testing workflow for E2E, integration, and unit tests. Use when testing applications layer-by-layer, validating user journeys, or running test suites.
github-actions-templates
wshobson
Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications. Use when setting up CI/CD with GitHub Actions, automating development workflows, or creating reusable workflow templates.
glab
NikiforovAll
Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the command line. Use this skill when the user needs to interact with GitLab resources or perform GitLab workflows.
create-pr
n8n-io
Creates GitHub pull requests with properly formatted titles that pass the check-pr-title CI validation. Use when creating PRs, submitting changes for review, or when the user says /pr or asks to create a pull request.
gh-fix-ci
openai
Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.