How to display information about a command?

git help command_name

To display information about a command use git help command_name, where command_name is the git command of your choice.

Layer 1
Terminal Example
git help init
NAME
  git-init - Create an empty Git repository or reinitialize an existing one

SYNOPSIS
  git init [-q | --quiet] [--bare] [--template=]
    [--separate-git-dir ]
    [--shared[=]] [directory]

DESCRIPTION
  This command creates an empty Git repository - basically a .git directory with subdirectories for objects, refs/heads, refs/tags, and template files. An
  initial HEAD file that references the HEAD of the master branch is also created.
...

See git help to learn more about it.

Last modified on November 30, 2021.

You might also like