Git Setup
Install Git on Your Laptop
Steps to follow
- 1 Open your Terminal (Mac/Linux) or Git Bash (Windows).
-
2
Run
git --version— if you see a version number, Git is already installed. - 3 If not installed, follow the command for your operating system shown in the code panel below.
-
4
After installation, run
git --versionagain to confirm it worked.
💡
Tip: Git Bash on Windows gives you the same Unix-style commands as Mac and Linux — use it throughout this guide for consistency.
# First check if Git is already installed
git --version
# If not found, install via Homebrew
brew install git
# Verify installation
git --version
# Expected output: git version 2.44.0 (or similar)
# Download the installer from: https://git-scm.com/download/win
# Run the .exe installer — accept all defaults
# Open 'Git Bash' from the Start menu
# Verify installation inside Git Bash:
git --version
# Expected output: git version 2.44.0.windows.1
sudo apt update
sudo apt install git -y
# Verify installation
git --version
# Expected output: git version 2.43.0
1 / 34