Git配置用户名、邮箱、密码
配置用户名:username
git config --global user.name username
配置邮箱:user@email
git config --global user.email user@email
配置密码
git config --global credential.helper store
该命令会记住密码,执行一次 git pull 或 git push 等需要输入密码的命令,输入一次密码。
查看配置
git config --list
git 清除用户名密码
小妖666
清空所有用户名和密码:git config --system --unset credential.helper
只用这一个命令就可以,如果不好使可以参照下面命令
查看config配置:git config --list
查看git用户名:git config user.name
清除缓存的用户名和密码:git credential-manager uninstall
更改全局用户名:git config --global user.name "username"
更改全局邮箱:git config --global user.email "eamil@qq.com"
如果还不好使,那就得去 Windows管理凭据 里更改了
控制面板----用户账户---Windows管理凭据---编辑