Installing Git
Installing Git
Git must be installed on your computer before you can use it.
Windows Installation
- Go to the official Git website.
https://git-scm.com
-
Click Download for Windows
-
Run the installer.
Most of the default options are fine.
Important settings to keep:
- Use Git from the command line
- Use the default editor
- Enable symbolic links
- Finish installation.
To verify Git is installed open Command Prompt or PowerShell and run:
git –version
You should see something like:
git version 2.44.0
macOS Installation
The easiest method is using Homebrew.
Install Homebrew if needed:
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh )”
Then install Git:
brew install git
Verify installation:
git –version
Linux Installation
Ubuntu / Debian:
sudo apt update sudo apt install git
Fedora:
sudo dnf install git
Verify installation:
git –version