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/Miniforge3-Linux-x86_64.sh
sh Miniforge3-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
mamba activate git
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.
There was an error while loading. Please reload this page.