diff options
authorJunio C Hamano <>2021-09-23 20:44:49 (GMT)
committerJunio C Hamano <>2021-09-23 20:44:49 (GMT)
commit188da7dc094e5930d1b83c5d97f8c70c926984eb (patch)
parentbd42622e5f3ea4a5b1f5fd69174bc7914d00ea3e (diff)
parentb6d8887d3d607e0da971218f20428c0635c6362c (diff)
Merge branch 'ma/doc-git-version'
Doc update. * ma/doc-git-version: documentation: add documentation for 'git version'
2 files changed, 32 insertions, 0 deletions
diff --git a/Documentation/git-version.txt b/Documentation/git-version.txt
new file mode 100644
index 0000000..80fa775
--- /dev/null
+++ b/Documentation/git-version.txt
@@ -0,0 +1,28 @@
+git-version - Display version information about Git
+'git version' [--build-options]
+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.
+ Include additional information about how git was built for diagnostic
+ purposes.
+Part of the linkgit:git[1] suite
diff --git a/Documentation/git.txt b/Documentation/git.txt
index e4b8259..abace9e 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -41,6 +41,10 @@ OPTIONS
Prints the Git suite version that the 'git' program came from.
+This option is internaly converted to `git version ...` and accepts
+the same options as the linkgit:git-version[1] command. If `--help` is
+also given, it takes precedence over `--version`.
Prints the synopsis and a list of the most commonly used