Overview and common options
git nested [--version] [-q | -v | -vv] <command> [<options>] [<args>]
Each command has its own page. This page lists what they share.
Commands
Command |
What it does |
|---|---|
clone an upstream repository into a subdirectory |
|
turn an existing subdirectory into a nested repository |
|
update a nested repository from its upstream |
|
push a nested repository’s local changes upstream |
|
fetch upstream content for a nested repository |
|
report on the nested repositories of this repository |
|
show a nested repository’s local changes against upstream |
|
create a branch holding the local nested commits |
|
run a git command in the worktree of a nested repository |
|
add a nested branch to the current history as one commit |
|
point a nested repository’s sync point back into the current history |
|
remove the branches, refs and remotes nested operations created |
|
read or write a nested repository’s configuration |
|
print the shell completion script for git-nested |
|
print version information |
Getting help
git nested --help # the manual page
git nested pull --help # one command: what it does, its options, examples
git nested pull -h # the same
The <subdir> argument
Most commands take the nested folder as their first argument.
It is relative to the folder you are in, like git’s own paths.
It must be inside the repository. An absolute path is refused.
Inside a nested folder you can leave it out. git-nested then uses the nearest nested folder at or above where you are.
git nested pull ext/lib # from the top of the repository
cd ext/lib
git nested pull # the same
status, clone, init, completion and version never guess the
folder.
Options for all commands
These go before the command name: git nested -v pull, not
git nested pull -v.
Option |
Meaning |
|---|---|
|
print help and stop |
|
print the git-nested version, the same as |
|
report only warnings and errors |
|
narrate the steps being taken; twice to log every git command |
How much it tells you
git nested -q pull ext/lib # only warnings and errors
git nested pull ext/lib # the default: what changed
git nested -v pull ext/lib # plus each step
git nested -vv pull ext/lib # plus every git command
These only change the messages about the work, on stderr. A result you may
pipe somewhere goes to stdout and is never hidden. That is the output of
status, diff, config, completion, version and run.
In a terminal git-nested also names each remote it contacts, shows git’s progress, and counts commits while it rebuilds a nested history.
Color
Output is colored when it goes to a terminal.
NO_COLOR=1turns color off.FORCE_COLOR=1keeps color on, for example in a pipe.
Credentials
git-nested hides the user name and password of URLs in its output. So
https://user:token@host/repo is shown as https://***@host/repo.
Exit status
Code |
Meaning |
|---|---|
|
success |
|
the command failed; the reason is on stderr |
|
an unknown option, or a missing argument |
|
interrupted, for example with Ctrl-C |
run exits with the exit code of the git command it ran.