Configuring git
upon downloading the git into the local machine we need to configure the GitHub details to global environment.
Configuring git :
Here we have configured the name for my global config setting over github
& to list all the configs done we can check it with
De-registering global configs :
1. Remove the Global Git Configuration File
You can delete the Git global configuration file directly. The file is typically located at ~/.gitconfig
.
2. Unset Specific Global Configuration
If you just want to reset specific settings (like username or email), you can use the git config --global --unset
command.
For example, to reset the global username:
To reset the global email:
3. Reset All Global Configurations
If you want to reset all global configurations, you can simply use:
Note: This command can be a bit more aggressive and may affect more than just user information.
4. Check Global Config
After resetting, you can check the current global configuration with:
Last updated