git删除掉已经保存的用户名密码

Posted Python_ZEN

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git删除掉已经保存的用户名密码相关的知识,希望对你有一定的参考价值。

以保存的用户名密码删除,先找到变量存在的位置:

git config -l

To help track down the setting, I‘d try to use:

git config --local credential.helper
git config --global credential.helper
git config --system credential.helper

The first one checks the local repo config, the second is your ~/.gitconfig, and the third is based on where git is installed. Depending on which one comes back showing the credential helper, you can try using the equivalent --unset option:

git config --local --unset credential.helper
git config --global --unset credential.helper
git config --system --unset credential.helper

The last one may not work if you don‘t have proper permissions. So you may need to run the last one under sudo for it to work correctly. FWIW, you may have installed for the pre-built git images for Mac OS X. If you cat /usr/local/git/etc/gitconfig, you‘ll see that it does set up the credential helper for you. So the last command above would help fix that problem.

以上是关于git删除掉已经保存的用户名密码的主要内容,如果未能解决你的问题,请参考以下文章

Git 删除本地保存的账号和密码

删除git中缓存的用户名和密码

删除git中缓存的用户名和密码

Eclipse中怎么清除Git用户名和密码

记Git保存本地密码与删除本地缓存

Eclipse中怎么清除Git用户名和密码