Installing Git
Git - Quick Reference
1 min read
This section is 1 min read, full guide is 16 min read
Published Jun 19 2025, updated Aug 17 2026
7
Show sections list
0
Log in to enable the "Like" button
0
Guide comments
0
Log in to enable the "Save" button
Respond to this guide
Guide Sections
Guide Comments
CLIGit
Installing Git is a different process on different operating systems. Once installed from the selected method below, run the following.
Verify it has installed correctly:
git --versionAfter installing on any of the platforms, set your name and email address:
git config --global user.name "Your Name"git config --global user.email "your.email@example.com"On macOS
Use homebrew and run:
brew install gitOn Windows
- Go to https://git-scm.com/download/win.
- The download should start automatically.
- Run the
.exeinstaller. - Recommended setup options:
- Use Git from the command line and also from 3rd-party software.
- Use OpenSSH.
- Use "Checkout Windows-style, commit Unix-style line endings".
- Use the default Git Bash terminal.
Ubuntu/Debian based Linux
sudo apt updatesudo apt install gitFedora Linux
sudo dnf install gitArch Linux
sudo pacman -S git