Git 清除已保存的账户

Git会自动保存输入过的用户名、密码。

Git的配置文件是~/.gitconfig。可在windows下的GIt Bash、Mac的命令行中,用vim ~/.gitconfig打开。

Windows

 

git config --system --unset credential.helper

 

Mac

 

sudo git config --system --unset credential.helper

 

posted on 2018-06-12 18:37  沙滩海风  阅读(302)  评论(0)    收藏  举报

导航