3

How many commands does Git have ? In particular :

  • How many high level commands ?
  • How many total commands, including the very low level commands such as git-read-tree` ?

Optional : How many average flags by command ?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Maxime
  • 1,776
  • 1
  • 16
  • 29

1 Answers1

11
git help -a

would list all the commands, but without distinction between porcelain and plumbing commands.
That would be 152 for a git 1.7.11.3

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 2019 Update: There are 135 git subcommands in git 2.20.1 – kangalio Feb 15 '19 at 17:52
  • @kangalioo `C:\>git version`: `git version 2.20.1.windows.1` and: `C:\>git help -a|grep "^ "|wc -l`: 141. – VonC Feb 15 '19 at 18:02
  • I do have exactly 135 subcommands (not counting the external `clang-format`. I'm on Linux though, might be different between OSes – kangalio Feb 15 '19 at 19:09