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
Git会自动保存输入过的用户名、密码。
Git的配置文件是~/.gitconfig。可在windows下的GIt Bash、Mac的命令行中,用vim ~/.gitconfig打开。

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