Git · Setup and configuration

git config

Reads or writes configuration. Use --local for repository-specific values.

Syntax
git config --global user.name "…"

Example

Example
git config --global user.name "Ada Lovelace"
git config --global user.email "ada@example.com"
git config --list

More in this group

.gitignore git clone git help git init git remote

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course