• System
• Global
• Local
System (host)
git config --system
Note: saves to /etc/gitconfig
Global (user)
git config --global
Note: settings for anyone that logs in.
Local (repository)
git config --local
myproject/.git/config
git config --list <-lists all your options
git config --list | less
List a single key.
git config section.key
git config section.subsection.key
git config color.ui
How to set a value in the config file?
git config fake.monkey angry
This sets a value
fake
monkey=angry