git-version
Name
git-version - Display version information about Git
Synopsis
git version [--build-options]
Description
With no options given, the version of git is printed on the standard output.
Note that git --version is identical to git version because the former is internally converted into the latter.
Options
- --build-options
-
Include additional information about how git was built for diagnostic purposes.
The libraries used to implement the SHA-1 and SHA-256 algorithms are displayed in the form
SHA-1:<option> andSHA-256:<option>. Note that the SHA-1 optionsSHA1_APPLE,SHA1_OPENSSL, andSHA1_BLKdo not use a collision detection algorithm and thus may be vulnerable to known SHA-1 collision attacks. When a faster SHA-1 implementation without collision detection is used for only non-cryptographic purposes, the algorithm is displayed in the formnon-collision-detecting-SHA-1:<option>.
version
© 2005–2025 Linus Torvalds and others
Licensed under the GNU General Public License version 2.
https://git-scm.com/docs/git-version