git nested fetch
Fetch upstream content for a nested repository.
git nested fetch [<options>] [<subdir>]
git nested fetch --all [<options>]
What it does
fetch downloads the upstream branch into the ref
refs/nested/<subdir>/fetch. It changes no file and makes no commit.
Other commands fetch when they need to. Use fetch to look first, for
example with status:
git nested fetch --all
git nested status --short
A nested repository without a remote is skipped.
Arguments
Argument |
Meaning |
|---|---|
|
the nested repository. Can be left out inside it |
Options
Option |
Meaning |
|---|---|
|
fetch all nested repositories |
|
fetch this upstream branch instead |
|
fetch from this upstream instead |
|
fetch even while a nested worktree is checked out |
Examples
git nested fetch ext/lib
git nested fetch --all
git nested fetch --all -b release/2.0
With --all -b, a repository whose upstream has no such branch is skipped.
Notes
With a pin, the pinned commit is fetched. It must be on the branch.
If the branch does not exist upstream yet,
fetchsays so. Apushmakes it.