Configuring Git (Local Machine)

System Level Configuration

git config --system

Stored in etc/gitconfig in Mac / Linux. Similar structure in Windows, usually within usually within Program Files.


User Level Configuration

git config --global

Stored in ~/.gitconfig in Mac / Linux. Similar structure in Windows, within user home folder.


Repository Level Configuration

git config

Stored in .git/config in each repo.


Note: More common to modify global or repository level configuration, than system level.


Basic Configuration

Set user name and email:

git config --global "<Name>"

git config --global "<email>"


Verify global config:

git config --global --list


git config --global 

Displays configured username.

git config --global 

Displays configured email.


cat ~/.gitconfig

To see contents of config file.


Adding fuzzy check:

git config --global help.autocorrect 1



First try:

git statsu

git: 'statsu' is not a git command. See 'git --help'.


Then try:

git config --global help.autocorrect 1


WARNING: You called a Git command named 'statsu', which does not exist.

Continuing in 0.1 seconds, assuming that you meant 'status'.


Colorize Output

git config --global color.ui auto


We learn together, do innovations and then document them at

Offline Contact
We connect physically only in Bengaluru currently, but most of our activities happen online. Please follow us here or in social media for more details.
WhatsApp (Primary): (+91) 7411174113
WhatsApp (Secondary): (+91) 7411174114

Business newsletter

Complete the form below, and we'll send you an e-mail every now and again with all the latest news.

About us

Team Cloudericks is a community started by Heartin Kanikathottu to learn about and master cloud computing. Our current focus is on Amazon Web Servivces. aims to document what we learn. We believe that knowledge is useless unless you share it; the more you share, the more you learn.

Recent comments

Photo Stream