-
Notifications
You must be signed in to change notification settings - Fork 0
Installing git on Linux
This should work on any 64-bit Intel or AMD computer running any Linux distribution released after 2011
-
Open a terminal.
-
Download mambaforge:
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
- Install mambaforge:
sh Mambaforge-Linux-x86_64.sh
-
Agree to the license, agree to the default location for installing mamba, and when the installer offers to intialize Mambaforge type 'yes'.
-
Close the terminal and then open it again.
-
Create an environment with 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.