Configuring Git environment

git needs some basic configuration to commit repositories. because there are so many other users, where they will commit changes or access repo .to do these all users should configure git profile globally or locally. the uses of the git profile will be our further topic.
for configuring our git profile for every repository we should use --global tag
for configuring our git profile for the only individual repository we should not use --global tag.
Setting username
Setting user email
Color highlighting
to change the colors in the git console
Setting default editor
Setting the default merge tool
Listing git settings
these all configurations are stored in a file called .gitconfig, we can edit that file if we want to change our configuration again or we can run the above commands again .but these are supported for the only global profile.
To edit or view configuration
but to configure our git profile for the separate repository we should not use --global tag and .first we should initiate a git directory to use the above commands without -- global.
Initiate a git directory
Example for one config without --global
git configuration for any local or individual directory is stored in a different file called .git/config file. we can edit this file anytime
Edit config files using commands
user can edit the git config files locally if the user runs git locally, user can also edit global config file too
to modify git config files, in system-wide user can use 2nd command from above