Git Fetch

Fetch branches and history from remote repositories.

Andersonlimahw Updated

File contents

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.

Andersonlimahw/lemon-ai-hub/tree/main/plugins/git-expert/skills/git-fetch commit 80c143a403

Frequently asked questions

npx skillmds@latest add andersonlimahw/git-fetch