How to install Git¶
GitHub Desktop application ¶
By far the simplest method to install Git is to download and install the GitHub Desktop application, it comes with an installation of Git.
To use it, you'll need to create a (free) GitHub account.
If you use Linux, then there is a fork of the GitHub Desktop (which might be painful to install), or you can use directly the CLI, or check those GUI options.
Git in the terminal¶
If you use Linux, or if you want to use the terminal, you can install Git this way:
In the console: xcode-select --install
will install clang, gcc, and git.
It's most likely already installed, verify with git --version
, which should return git version 2.42.0
(or similar version).
If not installed, then sudo apt update
+ `sudo apt install git
With Chocolatey: choco install git
.