如何禁用Git的凭据管理器为Windows? [英] How to disable Git Credential Manager for Windows?
问题描述
我注意到,在Git中的最新版本,默认现在是弹出一个混帐凭据管理器为Windows对话框,而不是在bash提示我要我的密码都提示输入时间。我真的很讨厌这种行为。我如何才能禁用它并返回到进入在bash密码外壳每一次?
I notice that in the latest version of Git, the default is now to popup a "Git Credential Manager for Windows" dialog instead of prompting me for me password at the bash prompt every time. I really hate this behaviour. How can I just disable it and go back to entering the password at the bash shell every time?
顺便说一句,我不希望git的缓存我的凭据的以任何方式的,无论是通过Windows凭据或一些内部守护进程。我想禁用的所有凭据缓存的
By the way, I don't want git caching my credentials in any way, whether through Windows credentials or some internal daemon. I want to disable all credential caching.
推荐答案
OK我才发现,你需要要么避免检查的Git在Git的凭据管理器复选框for Windows安装程序,或(安装后)运行的bash shell作为管理员,并使用混帐配置--edit --system
来删除 =帮手经理
行,以便它不再注册为凭证帮手。
OK I discovered that you need to either AVOID checking the "Git Credential Manager" checkbox during the Git for Windows installer, or (after installation) run bash shell as Administrator and use git config --edit --system
to remove the helper = manager
line so that it is no longer registered as a credential helper.
有关奖励积分,使用混帐配置--edit --global
和插入:
For bonus points, use git config --edit --global
and insert:
[core]
askpass =
要禁用OpenSSH的凭据弹出了。
To disable the OpenSSH credentials popup too.
这篇关于如何禁用Git的凭据管理器为Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!