Home >Development Tools >git >How to cancel global configuration in git

How to cancel global configuration in git

WBOY
WBOYOriginal
2022-01-07 10:09:078377browse

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.

How to cancel global configuration in git

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn