Below are some usefull git config commands.

Stan Lee. June 19, 2017 Comments

List all options of git config.

git config

 

List all git config from the entire system

git config -l
git config --list
git config -l --show-origin (with path)

 

Edit a git config file

git config --edit
git config --global --edit (entire system git config)

 

Change git config with commands (without editing config file)

#Set
git config credential.http://github.com.username "user@codingmania"
OR
git config credential.username "user@codingmania"

#Unset or Remove
git config --unset credential.username
OR
git config --remove-section credential

 

  • git
  • git-config