Skip to main content

Install Git on Local System

Source repo: basic_skills | Branch: hpc-training-doc | Last synced: 2026-04-24 10:27:17.425 UTC

note

Install git on Linux:

If you want to install git on a Linux-based operating system, you should be able to do so via your operating system's standard package management tool. For example, on any RPM-based Linux distribution, such as Fedora, RHEL, or CentOS, you can use dnf:

$ sudo dnf install git-all

Or on any Debian-based distribution, such as Ubuntu, try apt:

$ sudo apt install git-all

Installing git on Mac OS X:

There are several ways to install git on your Mac. However, probably the easiest way is to install the Xcode Command Line Tools, which you should be able to do by simply tying to run git from your Terminal:

$ git --version

If it's not already installed, you should be prompted to install it.

If the above option does not work or you need a more up-to-date version of git, you can always install it via a binary installer maintained by the git team, which is available for download at:

https://git-scm.com/download/mac.

The download should start immediately.


Installing git on Windows:

tip
  • There are also several ways to install git under Windows. The official binary executable is available for download on the git website is here: Git Window Download