in Technology by
What is the function of ‘git config’?

1 Answer

0 votes
by

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. 

Related questions

0 votes
    When is the git config command used?...
asked Nov 4, 2020 in Technology by JackTerrance
0 votes
    Which of the following is not a valid Hadoop config file? 1. core-default.xml 2. hdfs-default.xml 3. hadoop-default.xml 4. mapred-default.xml...
asked Apr 13, 2021 in Technology by JackTerrance
0 votes
    Explain about the config.xml of PhoneGap ?...
asked Jan 15, 2021 in Technology by JackTerrance
0 votes
    How to config Gerrit - Generate New SSH Key?...
asked Nov 3, 2020 in Technology by JackTerrance
0 votes
    I have implemented exception handling as mentioned in below link How to pass error message to error view in ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    I'm teaching myself the Spring Cloud Config Server and having some trouble with injecting the properties into ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
0 votes
    I asked a question like this here: How to adjust Label in tkinter? But the events load up and ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    I want to get all the values from a section using config parser I used this but it gives only the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 14, 2022 in Education by JackTerrance
0 votes
    I'm currently trying Firebase Remote Config on Android. I gave a parameter a value: 2.2 but when ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 13, 2022 in Education by JackTerrance
0 votes
    Need to read my SMTP email settings defined under system.net section in my web.config file. Below is one example of SMTP email setting defined in web.config file: (Under Section)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    How to get array from form validation config file in controller? application/config/form_validation.php I have ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I'm trying to configure ccnet.config file with a range of parameters for force build option but the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    How to get array from form validation config file in controller? application/config/form_validation.php I have ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    Here's the scenario: After installing the ASP.NET application (using install shield) in IIS6, when I right ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    Here's the scenario: After installing the ASP.NET application (using install shield) in IIS6, when I right ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 17, 2022 in Education by JackTerrance
...