如何禁用Windows的Git Credential Manager? [英] How do I disable Git Credential Manager for Windows?

查看:857
本文介绍了如何禁用Windows的Git Credential Manager?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,在最新版本的Git中,默认设置是现在弹出用于Windows的Git凭据管理器"对话框,而不是每次都在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.

我真的很讨厌这种行为.我如何才能禁用它,然后每次又回到Bash shell上输入密码?

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.

推荐答案

好,我发现您需要避免在用于Windows的Git安装程序中选中"Git凭据管理器"复选框,或者(安装后)以 Administrator 身份运行Bash shell,并使用git config --edit --system删除helper = manager行,以使其不再注册为凭据帮助程序.

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 the 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.

要获得奖励积分,请使用git config --edit --global并插入:

For bonus points, use git config --edit --global and insert:

[core]
    askpass =

也要禁用OpenSSH凭据弹出窗口.

To disable the OpenSSH credentials popup too.

这篇关于如何禁用Windows的Git Credential Manager?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆