pull-latest

Checkout the default branch and pull latest commits from origin.

Updated May 20, 2026
One-click install
npx skills add https://github.com/paywhereb/paywhere-claude-plugins --skill pull-latest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pull-latest
Source: https://github.com/paywhereb/paywhere-claude-plugins/tree/main/paywhere-eng-workflow/skills/pull-latest
Command: npx skills add https://github.com/paywhereb/paywhere-claude-plugins --skill pull-latest

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

pull-latest removes the guesswork and risk of getting out of date by reliably checking out the repository’s default branch and pulling the newest commits from origin.

Core Features & Use Cases

  • Default-branch detection: Automatically determines whether the default branch is main or master by inspecting origin’s HEAD or local/remote tracking state.
  • Safety guardrails: Stops when uncommitted changes are present to prevent accidental loss or confusing diffs.
  • Verification and signposting: Confirms the updated branch and latest commit, then reports local branch count with an optional pointer to pruning after merged PRs.

Quick Start

Use the pull-latest skill to checkout the default branch and pull the latest changes from origin after confirming you have no uncommitted work.

Frequently Asked Questions about pull-latest

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

FAQPage Schema
How do I safely pull the latest commits from the default git branch without losing uncommitted changes?

Pull the latest changes safely by using a workflow that blocks execution when uncommitted local changes are detected, ensuring your work is protected before checking out and pulling from origin.

What is the best way to automatically detect whether a repository uses main or master as its default branch?

Default-branch detection automatically inspects origin’s HEAD or local and remote tracking state to determine whether the default branch is main or master before checking it out.

How do I verify that my local repository is synchronized with the latest commit from origin?

Verify repository synchronization by pulling from origin and confirming the updated branch name alongside the latest commit hash, ensuring your local environment matches the remote state.

Can I use an automated git workflow to pull origin and report my local branch count without deleting any branches?

You can pull from origin and report your local branch count without performing any branch deletion, providing an optional pointer to pruning only after merged PRs are completed.

Why should I refresh the default branch before continuing engineering work or preparing automation steps?

Refreshing the default branch before continuing work or preparing automation prevents stale code and inconsistent environments by reliably checking out the default branch and pulling the newest commits.