fetch
Refresh information from origin without changing working files.
Usage
git-wrangler fetch [options]Quick start
git-wrangler fetch
What it does
fetch contacts origin for every target repository and updates local knowledge of remote branches. It does not merge changes or modify working files.
Use pull instead when you want to update working copies too.
Options
| Option | Default | What it does |
|---|---|---|
--repo <path> |
Whole workspace | Fetch exactly one repository. |
--prune |
Off | Remove local references to remote branches that no longer exist. |
--guided |
Off | Choose options through prompts. |
More examples
# Refresh and remove stale remote branch information
git-wrangler fetch --prune
# Fetch one repository
git-wrangler fetch --repo ./api
A failed or missing origin is reported for that repository while the rest of the workspace continues.