Home / Git / Lesson 2

Install Git and set your name

Beginner 5 min read Lesson 2 of 5

Download from git-scm.com/downloads, or brew install git / sudo apt install git. Then:

git --version
git config --global user.name "Your Name"
git config --global user.email "you@example.com"

Use the email you will use on GitHub, or GitHub will not link commits to your profile. --global writes to your home directory, not one repo.

On Windows, Git Bash is a usable terminal. In VS Code, the built-in terminal is enough.