Saturday, November 23, 2024

How to install Git on Mac

 Steps to install Git on Mac 



anurag@Anurags-MacBook-Air /opt % 

anurag@Anurags-MacBook-Air /opt % brew install git

==> Downloading https://formulae.brew.sh/api/formula.jws.json

######################################################################################################################################################################################################### 100.0%

==> Downloading https://formulae.brew.sh/api/cask.jws.json

######################################################################################################################################################################################################### 100.0%

==> Downloading https://ghcr.io/v2/homebrew/core/git/manifests/2.47.0

######################################################################################################################################################################################################### 100.0%

==> Fetching dependencies for git: libunistring, gettext and pcre2

==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/manifests/1.3

######################################################################################################################################################################################################### 100.0%

==> Fetching libunistring

==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/blobs/sha256:3cd26bae2d5fcf61294f14c18e5e7ec773a59ed1bf710fb92055e0db0244e909

######################################################################################################################################################################################################### 100.0%

==> Downloading https://ghcr.io/v2/homebrew/core/gettext/manifests/0.22.5-1

######################################################################################################################################################################################################### 100.0%

==> Fetching gettext

==> Downloading https://ghcr.io/v2/homebrew/core/gettext/blobs/sha256:9ad2a8e2fff717a18460818d086c02b8ed9f4c42a853f41a88c6f9b601b36615

######################################################################################################################################################################################################### 100.0%

==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/manifests/10.44

######################################################################################################################################################################################################### 100.0%

==> Fetching pcre2

==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/blobs/sha256:c3f9e7a70ebc0986af6f0b7c69ac1495fdf4c7420ad831d3daa9c86c448b79c2

######################################################################################################################################################################################################### 100.0%

==> Fetching git

==> Downloading https://ghcr.io/v2/homebrew/core/git/blobs/sha256:7c09abec73bcb89e12d067fb023ec7f69df73a903fa1b5eef5121a404af2694c

######################################################################################################################################################################################################### 100.0%

==> Installing dependencies for git: libunistring, gettext and pcre2

==> Installing git dependency: libunistring

==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/manifests/1.3

Already downloaded: /Users/anurag/Library/Caches/Homebrew/downloads/a570da63bc1839c7e217f203abd54d4d873ebd6b99f6e88994d0e79e2ebe987c--libunistring-1.3.bottle_manifest.json

==> Pouring libunistring--1.3.arm64_sequoia.bottle.tar.gz

🍺  /opt/homebrew/Cellar/libunistring/1.3: 59 files, 5.4MB

==> Installing git dependency: gettext

==> Downloading https://ghcr.io/v2/homebrew/core/gettext/manifests/0.22.5-1

Already downloaded: /Users/anurag/Library/Caches/Homebrew/downloads/6556ea282eab4408e8a5a2be54b73c40117a4c1821978c0d109b8204e4fe8f17--gettext-0.22.5-1.bottle_manifest.json

==> Pouring gettext--0.22.5.arm64_sequoia.bottle.1.tar.gz

🍺  /opt/homebrew/Cellar/gettext/0.22.5: 2,044 files, 21.6MB

==> Installing git dependency: pcre2

==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/manifests/10.44

Already downloaded: /Users/anurag/Library/Caches/Homebrew/downloads/22ed791461c5bf400adde8c3b432c1230866aa1db3c5cb81e06a6ff21cac96ee--pcre2-10.44.bottle_manifest.json

==> Pouring pcre2--10.44.arm64_sequoia.bottle.tar.gz

🍺  /opt/homebrew/Cellar/pcre2/10.44: 237 files, 6.3MB

==> Installing git

==> Pouring git--2.47.0.arm64_sequoia.bottle.tar.gz

==> Caveats

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.


zsh completions and functions have been installed to:

  /opt/homebrew/share/zsh/site-functions

==> Summary

🍺  /opt/homebrew/Cellar/git/2.47.0: 1,684 files, 54.4MB

==> Running `brew cleanup git`...

Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.

Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

==> Caveats

==> git

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.


zsh completions and functions have been installed to:

  /opt/homebrew/share/zsh/site-functions

anurag@Anurags-MacBook-Air /opt % 

anurag@Anurags-MacBook-Air /opt % 

anurag@Anurags-MacBook-Air /opt % which git 

/usr/bin/git

anurag@Anurags-MacBook-Air /opt % 

No comments:

Post a Comment

About the Author : Anurag Pandey | Database cloud Architect | Oracle | SQL Server | PostgreSQL | AI and Data Platform Enthusiast

Anurag Pandey is a Database Architect with expertise in Oracle, PostgreSQL, SQL Server, Linux, and enterprise database platforms and specializes in database architecture, performance tuning, high availability, disaster recovery, cloud modernization, and operational excellence. With extensive experience in enterprise-scale environments, Anurag is passionate about leveraging AI, automation, and modern data platforms to improve reliability, scalability, and business outcomes. He actively contributes to technical communities through knowledge sharing, architecture guidance, and thought leadership in database and data engineering domains.

Follow more articles at

Visit Blog

Oracle Database Deep Health Check Checklist

Oracle Database Deep Health Check Checklist Recommended assessment levels Level Purpose Typical scope L1 Operational health Availability, sp...