Hilfe in Git

Git bietet Hilfe mit verschiedener Syntax.

$ git help <verb>
$ git <verb> --help
$ man git-<verb>

Letzteres Kommando bezieht sich natürlich auf Linux-Manpages und ist in einer reinen Windows-Umgebung nicht verfügbar. Es folgt ein Beispiel für git commit.

GIT-COMMIT(1)                     Git Manual                        GIT-COMMIT(1)

NAME
       git-commit - Record changes to the repository

SYNOPSIS
       git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]
                  [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>)]
                  [-F <file> | -m <msg>] [--reset-author] [--allow-empty]
                  [--allow-empty-message] [--no-verify] [-e] [--author=<author>]
                  [--date=<date>] [--cleanup=<mode>] [--[no-]status]
                  [-i | -o] [--pathspec-from-file=<file> [--pathspec-file-nul]]
                  [(--trailer <token>[(=|:)<value>])...] [-S[<keyid>]]
                  [--] [<pathspec>...]

DESCRIPTION
       Create a new commit containing the current contents of the index and the given log message describing the changes.
       The new commit is a direct child of HEAD, usually the tip of the current branch, and the branch is updated to
       point to it (unless no branch is associated with the working tree, in which case HEAD is "detached" as described
       in git-checkout(1)).

       The content to be committed can be specified in several ways:

        1. by using git-add(1) to incrementally "add" changes to the index before using the commit command (Note: even
           modified files must be "added");

        2. by using git-rm(1) to remove files from the working tree and the index, again before using the commit command;

        3. by listing files as arguments to the commit command (without --interactive or --patch switch), in which case

 Manual page git-commit(1) line 1 (press h for help or q to quit)

Auf Windows-Systemen mit MingW64-Installationen für Git werden die lokalen HTML-Hilfe-Seiten ausgeliefert.