What is the function of ‘git config’?

▼ Show 1 Answer

0 votes
Git uses our username to associate commits with an identity. The git config command can be used to change our Git configuration, including your username.

Suppose you want to give a username and email id to associate commit with an identity so that you can know who has made a commit. For that I will use:

git config –global “Your Name”: This command will add your username.

git config –global “Your E-mail Address”: This command will add your email id.
Learn More with Madanswer

Related questions

0 votes
asked Apr 18, 2020 by SakshiSharma