OS Manuals

/usr/bin/git2

A cross-platform, linkable library implementation of Git that you can use in your application.

From libgit2 1.9.7-r5 (os), captured 2026-11-05 by running git2 --help (exit 0). permalink

Also provided by 1 other package version
usage: git2 [--help] [-c <key=value>] [--config-env=<key=value>] [--no-pager]
             [--version] <command> [<args>...]

These are the git2 commands available:

   blame        Show the origin of each line of a file
   cat-file     Display an object in the repository
   clone        Clone a repository into a new directory
   config       View or set configuration values
   hash-object  Hash a raw object and product its object ID
   help         Display help information
   index-pack   Create an index for a packfile
   init         Create a new git repository

See 'git2 help <command>' for more information on a specific command.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.