Chapter 2 Install and Configure Git



Chapter introduction image
Image credit: Git Logo by Jason Long



2.1 macOS

Git is already installed on your Mac! No additional installation needed.

2.2 Windows

Download and install from git-scm.com

Important: During installation, select “Git Bash” for command line access.

2.3 Linux (Ubuntu/Debian)

sudo apt update
sudo apt install git

2.4 Verify Git Installation

git --version
# Should show: git version 2.x.x

2.5 Configure Git

Set your identity for Git by opening a terminal (macOS/Linux) or Git Bash (Windows) and running these commands:

git config --global user.name "Your Name"
git config --global user.email "your.email@university.edu"

Next Chapter Preview: We’ll create your GitHub account, choose a good username, and complete the account verification process.