Skip to content
Justice Tech School

Configuring Git

user.name, user.email, core.editor and init.defaultBranch are common settings. --global applies to your user.

Example
git config user.name 'Ada'
git config user.email 'ada@example.com'
git config --get user.name
git config --list --local | grep user | sort

Result

Ada
user.email=ada@example.com
user.name=Ada

Exercise

Read a setting.

git config  user.name

Quiz Test

Which scope is for one repo?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.