sync

Synchronize the current Git branch with origin/main via rebase or pull.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/dtbuchholz/claude-config --skill sync-dtbuchholz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync
Source: https://github.com/dtbuchholz/claude-config/tree/main/skills/sync
Command: npx skills add https://github.com/dtbuchholz/claude-config --skill sync-dtbuchholz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of synchronizing your current feature branch with the main or master branch, ensuring your code is up-to-date and reducing merge conflicts.

Core Features & Use Cases

  • Fetch Latest Changes: Retrieves the most recent commits from the remote repository.
  • Rebase or Pull: Intelligently rebases your feature branch onto the main branch or pulls directly if you are on the main branch.
  • Conflict Handling Guidance: Provides clear instructions on how to handle merge conflicts if they arise.
  • Use Case: Before starting new work or creating a pull request, use this skill to ensure your branch is based on the latest version of the main codebase.

Quick Start

Use the sync skill to update your current branch with the latest changes from origin main.

Frequently Asked Questions about sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync my current Git branch with the latest changes from main?

To sync a Git branch, fetch remote changes and apply them by rebasing feature branches onto origin/main or pulling directly if on the main branch. This ensures your local codebase is fully updated.

What is the best way to rebase a feature branch onto origin/main?

The best way to rebase a feature branch is using an automated workflow that fetches the latest remote commits and intelligently rebases your current work onto the primary development branch. This reduces potential merge conflicts before creating a pull request.

How do I resolve merge conflicts when pulling from the main branch?

To resolve merge conflicts during a pull, follow the provided guidance for manual conflict resolution after the rebase or pull process halts. The Skill detects the primary branch and applies updates but requires manual intervention for overlapping changes.

Does this Git synchronization workflow work for both main and master branches?

Yes, the synchronization workflow supports both main and master branches. It identifies the primary development branch and performs a direct pull with rebase if you are currently on it, or rebases your feature branch onto it.

When do I need to sync my branch before creating a pull request?

You need to sync your branch before starting new work or creating a pull request to ensure your code is based on the latest version of the main codebase. This process fetches recent commits and reduces merge conflicts.