The actual command listing plumbing commands (and the other commands, in their own sections) was:
git help -av
This comes from git/git/command-list.txt
.
And this changes with Git 2.20 (Q4 2018), considering "git help -a
" and "git help -av
" give different pieces of information, and generally the "verbose" version is more friendly to the new users.
"git help -a
" by default now uses the more verbose output (with "--no-verbose
", you can go back to the original).
See commit 26c7d06 (29 Sep 2018) by Nguyễn Thái Ngọc Duy (pclouds
).
(Merged by Junio C Hamano -- gitster
-- in commit 54e564e, 19 Oct 2018)
help -a
: improve and make --verbose
default
When you type "git help
" (or just "git
") you are greeted with a list with commonly used commands and their short description and are suggested to use "git help -a
" or "git help -g
" for more details.
"git help -av
" would be more friendly and inline with what is shown with "git help
" since it shows list of commands with description as well, and commands are properly grouped.
"help -av
" does not show everything "help -a
" shows though.
Add external command section in "help -av
" for this. While at there, add a section for aliases as well (until now aliases have no UI, just "git config
").
A simple git help -a
(with Git 2.20+) will now return:
vonc@VONC D:\git\git
> git help -a
Main Porcelain Commands
add Add file contents to the index
am Apply a series of patches from a mailbox
archive Create an archive of files from a named tree
bisect Use binary search to find the commit that introduced a bug
...
With Git 2.25 (Q1 2020), the list of commands is more complete.
See commit 762d5b4 (28 Oct 2019) by Philippe Blain (phil-blain
).
(Merged by Junio C Hamano -- gitster
-- in commit ecbddd1, 01 Dec 2019)
help
: add gitsubmodules
to the list of guides
Signed-off-by: Philippe Blain
Reviewed-by: Jonathan Nieder
The guide "gitsubmodules
" was added in d480345 ("submodules
: overhaul documentation", 2017-06-22, Git v2.14.0-rc0 -- merge listed in batch #0), but it was not added to command-list.txt when commit 1b81d8c ("help
: use command-list.txt
for the source of guides", 2018-05-20, Git v2.18.0-rc1 -- merge) taught "git help
" to obtain the guide list from this file.
Add it now, and capitalize the first word of the description of gitsubmodules
, as was done in 1b81d8c ("help
: use command-list.txt
for the source of guides", 2018-05-20, Git v2.18.0-rc1 -- merge) for the other guides.
With Git 2.36 (Q2 2022):
git help -a --no-external-commands
will not list an git-xxx
executable found in the PATH
,
git help -a --no-aliases
will not list any git xxx
defined as alias.
git status
is a porcelain or not, for example – Latoyialatreece