This topic describes how to install Git on different operating systems. Git helps you efficiently manage project versions.
Install on Linux
The fastest way to install Git is to use a binary package. The installation command varies for different Linux distributions because they use different package managers. For example, to install Git on a RedHat-based distribution, run the following command:
sudo yum install gitThe official Git website lists the installation steps for various Unix distributions.
Install on macOS
Git is usually installed on macOS by default. To verify the installation, run the following command in Terminal:
git --versionTo install a newer version, you can download the binary installer from the official Git website.
brew install gitInstall on Windows
You can install Git on Windows by downloading the appropriate version from the official Git website. For information about other installation methods, see Git - Install Git.