GitHub PR Update

Update a pull request branch with latest base branch changes via merge or rebase.

1|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/dtsong/claude-code-windows-setup --skill github-pr-update
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: GitHub PR Update
Source: https://github.com/dtsong/claude-code-windows-setup/tree/main/skills/github-workflow/skills/gh-pr-update
Command: npx skills add https://github.com/dtsong/claude-code-windows-setup --skill github-pr-update

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of updating a pull request's branch with the latest changes from its base branch, preventing merge conflicts and ensuring code compatibility.

Core Features & Use Cases

  • Automated Branch Syncing: Updates your PR branch with the latest commits from the main or base branch.
  • Merge or Rebase Options: Supports both merging changes from the base branch or rebasing your branch onto it for a cleaner history.
  • Use Case: When your pull request shows "branch is out of date" and you need to incorporate recent changes from main before merging.

Quick Start

Update the current PR branch with the latest changes from the base branch.

Frequently Asked Questions about GitHub PR Update

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

FAQPage Schema
How do I update a pull request branch with the latest changes from the base branch?

To update a pull request branch, you can sync it with the latest commits from its base branch using either a merge or rebase strategy. This prevents merge conflicts and ensures code compatibility before merging.

When should I use a merge versus a rebase to sync an out of date GitHub branch?

Use a merge to preserve the complete history, or a rebase to sync an out of date branch for a cleaner commit history. Both strategies update your branch with recent base branch changes.

Can I automate branch syncing for a pull request with protected branch policies?

Yes, branch syncing can handle pull requests involving protected branch policies. It updates your branch with base branch commits while respecting the required CI checks and protections.

Does updating a GitHub pull request branch require local Git operations or can it use the GitHub API?

Updating a pull request branch supports both GitHub API and local Git operations for synchronization. You can choose either method to incorporate recent changes from the base branch.

Why does my pull request show branch is out of date and how do I fix it?

A pull request shows branch is out of date when new commits are added to the base branch. You fix this by syncing your branch using a merge or rebase strategy to incorporate those recent changes.