Checking settings in Git
After we have set up the basic settings for Git, we need to check that they are correct. To view all the settings, run the following command:
git config --list
If we need to know the settings of a specific parameter, for example a text editor for sending messages, then we enter the name of the parameter we are interested in into the command:
git config core.editor
Print a list of all your Git settings to the terminal.
Check what username is set in your Git settings.