Skip to content

Git config in action!!!



This is the git command I learned today.I had wrongly set a wrong email id
and user name for the git repo being used. Today I noticed the same and got
to removing these entries. So here is a list of the various userful git config commands I learnt today.

To list all the configuration entries, fire:
git config -l
To list all the entries in the global configuration
git config --global -l
To list all the entries in the local configuration
git config --local -l
To unset all occurances of a key
git config --global --unset-all [key_name]
For ex: git config --global --unset-all hhtp.proxy

To add an entry to the config
git config --local [key_name] [key_value]