Skip to content

Installing git on Linux

David Ryder edited this page May 22, 2024 · 4 revisions

Linux Installation using mambaforge

This should work on any 64-bit Intel or AMD computer running any Linux distribution released after 2011

  1. Open a terminal.

  2. Download mambaforge:

curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh

  1. Install mambaforge:

sh Mambaforge-Linux-x86_64.sh

  1. Agree to the license, agree to the default location for installing mamba, and when the installer offers to intialize Mambaforge type 'yes'.

  2. Close the terminal and then open it again.

  3. Create an environment with git and gh installed:

mamba create --name=git git gh

  1. Activate the environment.

mamba activate git

  1. Authenticate git using your GitHub credentials:

gh auth login

  1. Keep pressing the return key.

  2. Eventually a tab on your internet browser should open a page from GitHub's website.

  3. Login, enter the one-time code output by gh, and then click the 'Authorize github' button to grant git access to your GitHub credentials.

Clone this wiki locally