GIT-VERSION(1)

πŸ¦‹ GIT-VERSION(1) β€” the git manual, but make it a group chat

ok so bestie, welcome to GIT-VERSION(1), which lives in the Git Manual β€” yes that Git, the one you keep typing at 2am πŸ’…. This page is literally just "how do I ask git what version it is," and honestly? It ate.


✨ NAME ✨

git-version β€” displays version information about Git. that's it, that's the whole job, and she does it flawlessly πŸŽ€


✨ SYNOPSIS ✨

git version [--build-options]

✨ DESCRIPTION ✨

okay so if you give it no options at all β€” nothing, zero, empty hands β€” the version of git gets printed on the standard output. slay. standard output. we stay on stdout, we don't cause a scene 🌸

and listen, because this is the part people always ask about: git --version is identical to git version. not "similar," not "kind of the same vibe" β€” identical. because internally, git --version gets converted into git version. it's giving "same girl, different entrance." no cap 🫢


✨ OPTIONS ✨

  • --build-options β€” this one's for when you want the tea β˜• about how git was built, extra info included, straight up for diagnostic purposes. like a little backstage tour of your git install.

the libraries used to implement the SHA-1 and SHA-256 algorithms get displayed in the form SHA-1: <option> and SHA-256: <option>. cute, tidy, iconic.

⚠️ okay important warning time, bestie, do not scroll past this: the SHA-1 options SHA1_APPLE, SHA1_OPENSSL, and SHA1_BLK do not use a collision detection algorithm, and because of that they may be vulnerable to known SHA-1 collision attacks. that's a real security thing, not a vibe. be careful πŸ”₯

when a faster SHA-1 implementation without collision detection is used for only non-cryptographic purposes, the algorithm gets displayed in the form non-collision-detecting-SHA-1: <option> β€” so git is basically labeling it for you. very thoughtful of her, honestly πŸ‘‘


🧚 GIT 🧚

part of the git(1) suite. she's not alone, she's got a whole family πŸ’œ


kisses, bestie πŸ’– β€” this page came to you from Git 2.56.0, dated 2026-09-27, and it's the GIT-VERSION(1) page of the Git Manual. go check your version, i'll be right here πŸ¦‹

πŸ“¦ where this page comes from