git config --global url重置
时间: 2023-11-24 20:06:57 浏览: 139
如果你想要重置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
```
相关问题
重置git config
重置git config是指重新设置git的配置信息。可以通过以下命令来重置git config:
```
git config --global --unset-all user.name
git config --global --unset-all user.email
```
这将会删除全局的用户名和邮箱配置信息。如果你只想删除某个特定的配置信息,可以使用以下命令:
```
git config --unset <key>
```
其中,<key>是你想要删除的配置信息的键名。
MAC重置git账号密码
要重置Git账号密码,你需要执行以下步骤:
1. 打开终端(Terminal)应用程序。
2. 输入以下命令来重置Git账号的密码:
```
git config --global --unset credential.helper
```
3. 然后,输入以下命令来清除Git凭据缓存:
```
git credential-osxkeychain erase
host=github.com
protocol=https
```
4. 终端会提示你输入用户名和密码。输入正确的用户名和新密码,然后按下回车键。
5. 重新验证Git账号的用户名和密码是否已更新:
```
git ls-remote https://github.com
```
请注意,这些步骤适用于在Mac上使用Git的情况。如果你使用其他操作系统或其他Git客户端,请参考相应的文档或官方指南来进行密码重置。