git config --global --unset-all
时间: 2023-12-08 15:38:13 浏览: 47
`git config --global --unset-all` 命令用于删除全局 Git 配置中的所有变量。这意味着,如果您在过去设置了一些全局 Git 配置变量,现在可以使用此命令将其全部删除。
请注意,此命令将删除所有全局 Git 配置变量,包括您的用户名和电子邮件地址。如果您只想删除特定的 Git 配置变量,可以使用 `git config --global --unset <variable-name>` 命令。
以下是使用 `git config --global --unset-all` 命令删除全局 Git 配置变量的示例:
```shell
git config --global --unset-all
```
相关问题
git config --global --unset http.proxy git config --global --unset https.proxy
如果你想取消git的http代理和https代理,可以使用以下命令:git config --global --unset http.proxy git config --global --unset https.proxy。这两个命令将从全局配置中删除http代理和https代理的设置。另外,如果你同时使用GitHub和Gitee,需要根据需要设置代理配置。当使用GitHub时,可以开启代理,设置命令为:git config --global http.proxy http://127.0.0.1:41091 git config --global https.proxy http://127.0.0.1:41091。而当使用Gitee时,取消代理的命令为:git config --global --unset http.proxy git config --global --unset https.proxy。另外,你还可以配置git使用socks代理或http代理,具体命令如下:使用socks代理:git config --global http.proxy socks://127.0.0.1:10808 git config --global https.proxy socks://127.0.0.1:10808;使用http代理:git config --global http.proxy http://127.0.0.1:10808 git config --global https.proxy https://127.0.0.1:10808。
git config --global url重置
如果你想要重置git config --global url的设置,可以使用以下命令:
```shell
git config --global --unset url.<section>.insteadOf
```
其中,<section>是你想要重置的部分。例如,如果你想要重置https部分的设置,可以使用以下命令:
```shell
git config --global --unset url.https.insteadOf
```
这将会删除之前设置的https代替地址。如果你想要删除所有的代替地址,可以使用以下命令:
```shell
git config --global --unset-all url.<section>.insteadOf
```
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)