Installing Git
Git - Quick Reference
1 min read
This section is 1 min read, full guide is 16 min read
Published Jun 19 2025
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 --version
Copy to Clipboard
After 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"
Copy to Clipboard
On macOS
Use homebrew and run:
brew install git
Copy to Clipboard
On Windows
- Go to https://git-scm.com/download/win.
- The download should start automatically.
- Run the
.exe
installer. - 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 update
sudo apt install git
Copy to Clipboard
Fedora Linux
sudo dnf install git
Copy to Clipboard
Arch Linux
sudo pacman -S git
Copy to Clipboard