mediagit fetch
Download objects and refs from a remote repository without merging.
Synopsis
mediagit fetch [OPTIONS] [REMOTE] [BRANCH]
Description
Fetches branches and objects from a remote repository, updating remote-tracking
refs. Does not modify the local working tree — use mediagit pull to fetch
and merge in one step.
Arguments
[REMOTE]
Remote name (default: origin).
[BRANCH]
Specific branch to fetch. If omitted, fetches all branches.
Options
--all
Fetch from all configured remotes.
-p, --prune
Remove remote-tracking refs that no longer exist on the remote.
-q, --quiet
Suppress progress output.
-v, --verbose
Show detailed transfer information.
Examples
Fetch from origin
$ mediagit fetch
From http://media-server.example.com/my-project
abc1234..def5678 main -> origin/main
new branch feature/vfx -> origin/feature/vfx
Fetch specific branch
$ mediagit fetch origin feature/lighting
Fetch from all remotes
$ mediagit fetch --all
Prune deleted remote branches
$ mediagit fetch --prune
From http://media-server.example.com/my-project
- [deleted] (none) -> origin/feature/old
After Fetching
# Review changes from remote
mediagit log origin/main..main --oneline
# Merge fetched changes
mediagit merge origin/main
Exit Status
- 0: Success
- 1: Network error or remote not found
See Also
- mediagit pull - Fetch and merge in one step
- mediagit remote - Manage remotes
- mediagit merge - Merge branches