Home >Development Tools >git >How to cancel global configuration in git
Method to cancel global configuration: 1. Execute the "git config --global --unset user.name" command in the terminal to cancel the specified global configuration item; 2. Use "git config --global --edit" " statement to edit the specified configuration file to cancel the global configuration.
The operating environment of this article: Windows 10 system, Git version 2.30.0, Dell G3 computer.
How to cancel the global configuration of git
1. View all Git configurations
git config --list
2. Delete global configuration items
(1) Terminal execution command:
git config --global --unset user.name
(2) Edit configuration file:
git config --global --edit
Recommended learning: "Git Tutorial"
The above is the detailed content of How to cancel global configuration in git. For more information, please follow other related articles on the PHP Chinese website!