git config's Examples

git config user.name "amardeep1"

git config user.name "amardeep"

adding email configuration

git config --global user.email "Sushant.cotocus@gmail.com"

This Command is Used To Configure Global Username.

git config --global user.name "Sushant Kumar"

To Set the default editor

git config --global core.editor Vim

Defines the name you want associated with your commit transactions

$ git config --global user.name "[user-name]“

Defines the email address you want associated with your commit transactions

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

Turns on colorization of command line output

$ git config --global color.ui auto

testing

git clone <repo> <directory>

git config user.name "Rajesh Kumar

git config user.name "Rajesh Kumar

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us