Configure Git

After installing Git, it is necessary to setup some of the configuration options. The configuration options you need to define include,,, and core.autocrlf.

The following steps will require you to open a terminal application such as Git Bash or PowerShell and Git to be installed. To confirm that Git is installed, run git --version and your terminal application should display a response similar to git version x.xx, where x.xx is the version number.

gif of the following directions


Enter git config --global "your name"in your Command Line Interface; where your name is the name you want to attribute to the commits you make.


In your terminal application enter, git config --global; where is the e-mail address associated with your GitHub account.

Now that you have configured your user name and email, it is time to define your Carriage Return Line Feed (crlf) settings on the next page.

Tell me why

Why –global?

Git allows you to set configuration options at three different levels.

  • --system These are system-wide configurations. They apply to all users on this computer.
  • --global These are the user level configurations. They only apply to your user account and will be applied to every repository you create or clone under your account.
  • --local - These are the repository level configurations. They only apply to the specific repository where they are set.

The default value for git config is --local. --local has precedence so setting something at the local level will override settings at the --global or --system level.

Stuck? Open an issue in the repository for this class and mention @githubteacher for help from one of the GitHub trainers!