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.0
head ⚡️ HEAD

Revision: 1

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.8 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.

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.

Analytics:

30 days90 days365 days
Installs107,409260,9381,471,014
Installs (--HEAD)1883522,633
Installs on Request105,153256,0071,438,091
Installs on Request (--HEAD)1883522,633
Build Errors1,185