Installing Git

Learn how to install Git on Windows, Mac, and Linux with step-by-step instructions for each platform.

Git installation varies depending on your operating system. This guide covers installation methods for the most common platforms.

On Windows

To install Git on Windows, you can download it here.

Note:

The Windows installer includes a GUI client and command-line tools. During installation, you can configure Git to work with your preferred terminal and text editor.

On Mac (Homebrew)

For Mac, using Homebrew is the recommended approach:

brew install git

Note:

If you don't have Homebrew installed, you can get it from brew.sh or use the official Git installer from git-scm.com.

On Linux

For Linux, installation depends on your package manager (based on your distribution).

Using APT (Ubuntu/Debian)

sudo apt-get install git

Using Pacman (Arch Linux)

sudo pacman -S git

Note:

After installation, verify Git is properly installed by running git --version in your terminal. This will display the installed Git version.

Next Steps

Once Git is installed, you can proceed to learn about Git versioning to understand how Git tracks changes in your projects.