The git config command is used to set configuration options for your Git installation.
For example, after you download Git, you need to use below the config commands to setup username and commit email address in Git respectively:
$ git config –global user.name “<username>”
$ git config –global user.email “<email id>”
So, mainly, things like the behavior of the repository, user information and preferences can be set up with the help of this command.