# Git Fetch

> Fetch branches and history from remote repositories.

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

---


# Git Fetch Skill

Download objects and refs from remote repositories without merging.

## Capabilities
- Fetch from origin: `git fetch origin`
- Fetch all remotes: `git fetch --all`
- Fetch specific branch: `git fetch origin <branch>`
- Fetch with tags: `git fetch --tags`
- Fetch and prune: `git fetch --prune` (remove stale remote-tracking branches)
- Fetch with depth: `git fetch --depth <n>` (shallow fetch)
- Fetch specific refspec: `git fetch origin <src>:<dst>`
- Dry run: `git fetch --dry-run`
- Fetch all: `git fetch --all --prune`

## Usage
Triggered when user says "fetch", "git fetch", "check remote", "sync remote branches".
Safer than `git pull` — inspect fetched changes before merging.
Always used before `git log <remote>/<branch>` to check remote state.

