1.

What is the function of ‘git config’?

Answer»

GIT has an in-built command called git config that gives you a chance to get and set setup factors that control all parts of what Git looks LIKE and works in your repository. The 'git config' order is an advantageous method to set design alternatives for your Git installation. The behaviour of a store, client DATA, inclinations and so forth can be characterized through this direction. The primary THING you ought to do when you introduce Git is to set your client name and email address. This is significant in light of the fact that each Git submit utilizes this data, and it's changelessly prepared into the submits you begin making:

Setting your Git username for every repository on your computer

  1. Open Git Bash.
  2. Set a Git username:

    $ git config --global user.name "XYZ"

  1. Confirm that you have set the Git username correctly:
  2. $ git config --global user.name  > XYZ

Checking Your Settings

If you want to check your configuration settings, you can use the git config --list command to list all the settings Git can find at that point:

$ git config --list user.name=XYZ user.email=abc@example.com color.status=auto color.branch=auto color.interactive=auto color.diff=auto


Discussion

No Comment Found