in Git by (23.9k points)
What is the function of ‘git config’?

1 Answer

0 votes
by (14.0k points)
Git uses your username to associate commits with an identity. The git config command can be used to change your Git configuration, including your username.

Now explain with an example.

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

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

git config –global “Your E-mail Address”: This command will add an email id.

Related questions

0 votes
0 votes
asked Nov 27, 2019 by rajeshsharma (23.9k points)
0 votes
asked Apr 18, 2020 by SakshiSharma (32.2k points)
0 votes
0 votes
asked Sep 5, 2020 in Git by SakshiSharma (32.2k points)