git_fetch
Retrieve remote refs and update remote-tracking branches without merging, so you can review upstream changes before integration. Optionally prune stale branches.
Instructions
Fetch refs from a remote (default origin) without merging, updating remote-tracking branches. Use this to see upstream changes before deciding to integrate them — answering 'what is on the remote?' — and to prune stale branches with prune=True. Does NOT change the working tree — use git_pull to fetch and integrate, or git_push to send local commits. Best for: updating remote-tracking branches before reviewing upstream changes. Returns: 'Fetched N refs from 'origin'.' followed by per-ref lines; use git_log or git_diff to inspect what was fetched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Also fetch tags | |
| prune | No | Prune remote-tracking branches | |
| remote | No | Remote to fetch from, defaults to origin | |
| repo_path | No | Path to the git repository, defaults to '.' (the server working directory) | . |