<LEARN/>
← Git & GitHub

// lesson 2 of 9

Installing and setting up Git

Install Git and tell it who you are.

// 1. read the lesson

Download Git from git-scm.com (it comes preinstalled on many Macs and Linux machines). Open a terminal and check it works:

git --version

Next, tell Git your name and email. These are attached to every commit you make, so others know who made each change:

git config --global user.name "Ama Mensah"
git config --global user.email "ama@example.com"

Use the same email you will use for GitHub. The --global flag means this setting applies to every project on your computer.

Written by the LEARN team.

Sign in to take the lesson test.

Your answers and code are checked and saved to your account.

Sign in