Home » Configuring Git

Configuring Git

Git config is used to configure Git settings like username, email, editor, color, branch name etc. The below commands explain everything thing in detail.


Configure Username

Sets the name that will be associated with your commit transactions.

git config --global user.name "[user_name]"


git config --global user.name Geeks

Configure Email

Sets the email address that will be associated to your commit transactions.

git config --global user.email "[email]"

Configure Color

git config --global color.ui auto

Configure Alias

Used to create shortcuts

git config –global alias

Configure Editor

Setup the default editor to use while using Git. Know more about configuring editor.

git config –system core.editor

You can edit the global configuration file by opening the file using the below command.

git config –global –edit

Also Read:

How to Set default Branch Name on Git