Categories

Oct 16, 2019 in Git
Q: What is the function of ‘git config’?

1 Answer

Oct 16, 2019
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 user.name “Your Name”: This command will add a username.

git config –global user.email “Your E-mail Address”: This command will add an email id.
Click here to read more about GIT
Click here to read more about Insurance

Related questions

Madanswer
Sep 5 in Git
Sep 3 in Git
Sep 4 in Git
...