[英]How to prevent BitBucket credentials getting stored in Windows Credential Manager when using Visual Studio?
I can't stop my BitBucket credentials being stored in Windows Credential Manager when using Visual Studio. 使用Visual Studio时,我无法停止将BitBucket凭据存储在Windows凭据管理器中。
I've unset credential.helper
using all three commands: 我已使用所有三个命令取消设置
credential.helper
:
git config --global --unset credential.helper
git config --system --unset credential.helper
git config --unset credential.helper
Interestingly, after running the above commands the credential.helper
setting still shows manager
within Visual Studio repository settings. 有趣的是,运行上述命令后,
credential.helper
设置仍在Visual Studio存储库设置中显示manager
。
I've even tried disabling Credential Manager within Windows Services but all this does is prevent me from opening Credential Manager. 我什至尝试过在Windows服务中禁用Credential Manager,但所有这些都是阻止我打开Credential Manager的原因。 The credentials are still getting stored!
凭据仍在存储中!
I've also tried setting credential.helper
to cache --timeout=600
hoping that the credentials would be forgotten after 10 minutes. 我还尝试将
credential.helper
设置为cache --timeout=600
希望在10分钟后忘记凭据。 But still the credentials are stored, and remembered after 10 minutes. 但是仍然存储凭据,并在10分钟后将其记住。
Couldn't find a way of doing it so now I just use Git Bash
instead. 找不到方法,所以现在我只使用
Git Bash
。
I need to do this as I'm using a shared virtual machine and can't have my personal credentials stored there. 我需要执行此操作,因为我正在使用共享虚拟机,并且无法在其中存储我的个人凭据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.