How to add a new configuration in git config file?

You can use “git config -add” flag to add a new config in git config file.


Create a new git local repository:

Add your and details in git configuration file:

Observe: We have used –local flag to add the configuration in git local configuration file. If you want to add the configuration in git global or system configuration file, use –global or –system flag respectively.

List the git configuration that you just added:

Remove your local git repository:

Leave a Reply