Home Explore Blog CI



git

Documentation/git-version.adoc
17fd7f9a9e079edf18f5161bf67465133c3d330d7a2c4b98000000030000040b
git-version(1)
==============

NAME
----
git-version - Display version information about Git

SYNOPSIS
--------
[verse]
'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>` and `SHA-256: <option>`. Note that the SHA-1
options `SHA1_APPLE`, `SHA1_OPENSSL`, and `SHA1_BLK` do 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 form
`non-collision-detecting-SHA-1: <option>`.

GIT
---
Part of the linkgit:git[1] suite

Chunks
d148c405 (1st chunk of `Documentation/git-version.adoc`)
Title: Git Version Command
Summary
The git-version command displays version information about Git, including the version number and build options, and can also show libraries used for SHA-1 and SHA-256 algorithms, providing additional details for diagnostic purposes, such as collision detection and implementation details.