merge

Rebases the current branch onto main and resolves conflicts interactively for Git workflows.

25|4|Updated Sep 5, 2010
One-click install
npx skills add https://github.com/divad12/dotfiles --skill merge-divad12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge
Source: https://github.com/divad12/dotfiles/tree/main/.claude/skills/merge
Command: npx skills add https://github.com/divad12/dotfiles --skill merge-divad12

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rebase the current branch onto main and resolve conflicts to maintain a clean history.

Core Features & Use Cases

  • Rebase onto local main to incorporate latest commits without creating merge commits.
  • Resolve conflicts interactively and verify both branches point to the same commit.
  • Use when you want a linear history and fast-forward the main branch.

Quick Start

Rebase the current branch onto main and resolve any conflicts, then fast-forward main to the latest commit.

Frequently Asked Questions about merge

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

FAQPage Schema
How do I rebase a local Git branch onto main to maintain a linear history?

Rebasing your current branch onto local main incorporates the latest commits without creating merge commits, ensuring a linear history. It allows you to resolve conflicts interactively and prepares your branch for a clean fast-forward.

What is the best way to resolve Git conflicts when rebasing onto main?

Resolving conflicts during a rebase involves interactively addressing merge issues as they occur. This ensures your current branch aligns with local main, preventing unwanted merge commits and maintaining a deterministic history.

When do I need to use a rebase workflow instead of merging?

You need a rebase workflow when you want a linear history and need to fast-forward the main branch. It applies your local commits on top of main without requiring remote fetches or generating unnecessary merge commits.

Can I fast-forward main after rebasing a local branch?

Yes, you can fast-forward main after rebasing. The process verifies both branches point to the same commit, allowing main to advance cleanly to the latest commit without creating merge commits.

Does this rebase workflow require fetching from a remote repository?

No, this rebase workflow applies to local Git workflows and requires no remote fetches. It uses the local main branch to incorporate latest commits and resolve conflicts to maintain a clean history.

Why should I avoid merge commits when updating a feature branch?

Avoiding merge commits by rebasing onto main maintains a clean, deterministic history. It applies your commits directly on top of the latest changes, allowing for a straightforward fast-forward of the main branch.