Getting Git on MacOS
On certain older verions of
MacOS one needs to get the right version of
Check the version
Check if you have the right version of ``git` <gettingGit>`_.
Macs come with
You can open
terminal and type
to see what version of
git you have.
It is most likely outdated if you’ve never used
Get the right version
To get the latest version visit this site .
To tell your computer to use the correct version of
we need to do the following :
terminaland do the following to bring yourself to your home “directory”.
Do the following to show all files in this “directory”.
Amongst these we are interested in a file called
.bash_profileif your mac is older.
Look at the top of your terminal window and you should see
bashif you’re on an older mac. This is the “shell” that your mac is using for
terminal. If it is
This should open the file
text editor. Now add the following to the end of the file
If you terminal was using
This should open
text editor. Now add the the following to the end of the file
Once you’ve done this, save the files and close them.
terminaland do the following again
You should see the version has now updated.