The git config command is a command that is used to configure your Git settings. The minimum setting for Git is to set a username and email address. You can either configure each Git repository differently or configure the settings globally. If you set the configuration globally, you don't have to configure the email address and username every time you initialize a Git repository. You can always override these in each repository if necessary.
To configure your email address and username, run the following command:
git config user.name = "john"
git config user.email = "[email protected]"
If you want to set the configuration globally, you need to add the --global keyword, as follows:
git config --global user.name = "john"
git config --global user.email = "[email protected]"
If you want to see what other global configuration settings are available, you can use the following command:
git config --list
You can then change the settings that you want to change.