In this very short post, I would like to share with you a GIT version issue I ran in to on my Mac π₯, I am running MacOS 10.15.7 Catalina.
As part of my studies for Cisco DevASC 200-901, I have been trying to get an understanding of GIT, which as you probably know, is a version control system. One thing you might, or might not know though, is that MacOS comes pre-installed with a version of GIT; as you can see below; the version pre-installed on MacOS is relatively old (at least in IT terms π). We will fix this.
Mac ~ % git – – version
git version 2.24.1 (Apple Git-126)
To upgrade to the latest version using Homebrew for Mac, I followed these steps.
1. Update and Upgrade any existing Homebrew binaries.
Mac ~ % brew update && brew upgrade
2. If not already done so, install GIT.
Mac ~ % brew install git
3.Β Edit the local path of GIT from the Apple default to the installed GIT version.
Mac ~ % export PATH=/usr/local/bin:$PATH
4.Β Check the GIT version again.
Mac ~ % git – -version
git version 2.29.2
To learn more about Homebrew, I would advise you to check out their website.
That’s all for now. ππ»
Β