git

Install command:
brew install git

Distributed revision control system

https://git-scm.com

License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-3-Clause AND MIT

Development: Pull requests

Formula JSON API: /api/formula/git.json

Formula code: git.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.56.1
head ⚡️ HEAD

Depends on:

pcre2 10.49 Perl compatible regular expressions library with a new API
gettext 1.0 GNU internationalization (i18n) and localization (l10n) library

Depends on when building from source:

gettext 1.0 GNU internationalization (i18n) and localization (l10n) library
pkgconf 3.0.11 Package compiler and linker metadata toolkit

Uses from macOS: curl, expat

Binaries: git, git-cvsserver, git-receive-pack, git-shell, git-upload-archive, git-upload-pack, scalar

The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.
Subversion interoperability (git-svn) is now in the `git-svn` formula.

GitHub Packages downloads:

Last 30 days906,881
Downloads45,520,625
Analytics install events (30 days)138,825
Downloads / install events (30 days)6.5×

Source: GitHub Packages, fetched 2026-11-24T00:50:04Z. Analytics dates: 2026-10-25 to 2026-11-24. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs138,546307,9901,400,299
Installs (--HEAD)2795622,339
Installs on Request134,897300,4511,372,362
Installs on Request (--HEAD)2795612,339
Build Errors193

Known vulnerabilities in the current version:

CVE-2026-86219 (critical) Authen::SASL::Perl::DIGEST_MD5 versions before 2.2100 for Perl accept replayed authentication res...

Data from Homebrew/advisory-database. Run brew vulns git for a live check.