git nested status
Report on the nested repositories of this repository.
git nested status [<options>]
What it does
status lists every nested repository: where it comes from, how many local
commits it has, how many upstream commits are not pulled yet, and whether
its content differs from upstream.
It reads only. It changes nothing.
Options
Option |
Meaning |
|---|---|
|
all nested repositories. This is the default |
|
also the nested repositories inside nested repositories |
|
fetch each upstream first |
|
one line per repository |
The global -q prints only the paths. The global -v adds the
nested refs.
Examples
git nested status
git nested status -F # fetch first
git nested status --short
git nested -q status # paths only
git nested -v status # with refs
Output
1 nested repository:
Git nested repository 'ext/lib':
Remote URL: https://github.com/user/lib
Upstream Ref: f7e58a0
Tracking Branch: main
Pulled Commit: cce0a6f
Pull Parent: b6b2cb9
Local Commits: 1
Behind Upstream: 1
Content: changed
Line |
Meaning |
|---|---|
|
the nested branch, if it exists |
|
the git remote |
|
|
|
the last fetched upstream commit |
|
|
|
|
|
|
|
the worktree of the nested branch, if there is one |
|
your commits in the folder since the sync point. Clone, pull and repair commits do not count |
|
fetched upstream commits you have not pulled yet |
|
|
Behind Upstream counts only what was fetched. Use -F for fresh numbers.
--short
<subdir> <local commits> <upstream commits not pulled> <changed|same>
ext/lib 1 0 changed
ext/util 0 3 same
A - means git-nested can not tell. For example, nothing was fetched yet,
or the sync point is not in your history.