# Gh Pull

> Sync current branch by merging tracking branch and canonical main with conflict resolution. No push or PR metadata actions.

- Skill: `gustavo-gardusi/gh-pull` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gustavo-gardusi/gh-pull`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gustavo-gardusi/gh-pull/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: gustavo-gardusi (https://skillmd.com/u/gustavo-gardusi)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/gustavo-gardusi/gh-pull

---


# Sync Branch

**Cursor skill:** **`@gh-pull`**

## Role

Merge latest remote updates into the current branch.

Terminal command execution is owned by:
- **[`internal/gh/pull-merge`](../../internal/gh/pull-merge/SKILL.md)**

## Workflow

1. Detect current branch and fetch remotes.
2. Merge tracking branch when configured.
3. Merge canonical `main` (`upstream/main` preferred, else `origin/main`).
4. Resolve conflicts carefully and commit merge.
5. Report sync result.

Use `internal/gh/pull-merge` for all runnable command steps.

## Preconditions

- Must be on a branch (not detached HEAD).

## Does Not Do

- Does not publish (`@gh-push`).
- Does not run full verification (`@gh-check`).
- Does not create/update PR metadata (`@gh-pr`).

## Next Skill

- Test overall: **[`@gh-check`](../check/SKILL.md)**
- Publish branch: **[`@gh-push`](../push/SKILL.md)**

If blocked by conflicts, resolve manually and rerun **[`@gh-pull`](../pull/SKILL.md)**.

