Install Git
Check if you have git on your system with git -v
:
$ git -v
git version 2.37.1 (Apple Git-137.1)
If you don't have it you will get something like:
git: command not found
Either way, simply install git with homebrew with brew install git
:
$ brew install git
==> Downloading https://ghcr.io/v2/homebrew/core/git/manifests/2.46.0
###############
...
After installation is complete, open a new terminal window and check the version with git -v
:
$ git -v
git version 2.46.0
If you see the same version as before, first check where git is being served from with which git
. If the path is NOT /usr/local/bin/git
, it means the path to the brew installed apps needs to be addded to your system $PATH.
Now you can setup your git user.