-
Notifications
You must be signed in to change notification settings - Fork 1
Installing git on Macs
This should work on any Mac running OS 10.9 or later, with an intel or silicon processor.
-
Open 'Terminal' (which is an app included with every copy of OS X).
-
Download mambaforge:
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-x86_64.sh
- Install mambaforge:
sh Miniforge3-MacOSX-x86_64.sh
-
Agree to continue with the installation, if you are warned about the computer not being 64-bit, agree to the license, and when the installer offers to intialize Mambaforge type 'yes'.
-
Close the terminal and then open it again (using the menu or '⌘' + 'N' shortcut).
-
Create an environment with the latest version of git and gh installed:
mamba create --name=git git gh
- Activate the environment.
mamba activate git
- Authenticate git using your GitHub credentials:
gh auth login
-
Keep pressing the return key.
-
Eventually a tab on your internet browser should open a page from GitHub's website.
-
Login, enter the one-time code output by gh, and then click the 'Authorize github' button to grant git access to your GitHub credentials.