简体   繁体   English

使用Visual Studio时如何防止BitBucket凭据存储在Windows凭据管理器中?

[英]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.

相关问题 如何在 Windows 的 Git Credential Manager 中的每个 repo 本地存储凭据? - How to store credentials locally per repo in Git Credential Manager for Windows? Jenkins无法从Windows凭据管理器检测到GIT凭据 - Jenkins does not detect GIT credentials from Windows Credential manager C#-使用Visual Studio安装项目安装时,在LocalSystem下运行的Windows Service提示输入凭据 - C# - Windows Service running under LocalSystem is prompting for credentials when installing using Visual Studio setup project 如果其他所有操作失败,则Windows的Git似乎会自动退回到凭证助手“ manager”。 我该如何预防? - Git for windows seems to automatically fall back to credential helper “manager” if everything else fails. How do I prevent this? 使用 Java 中的 windows 凭据管理器获取凭据,用于身份验证进入 git 和其他服务 - Use the windows credential manager in Java to get credentials for authentication into git and other services 可以禁用Java在Windows上的“单点登录”(使用“凭据管理器”中的凭据)吗? - Can Java's 'single sign-on' (use credentials from 'Credential Manager') on Windows be disabled? 使用 CMD 从 Windows 凭据管理器中检索密码 - Retrieving password from Windows Credential Manager using CMD 如何使用python使用存储在Windows证书管理器中的证书 - How to use certificate stored in windows certificates manager using python 从 Windows 凭据管理器读取凭据时,keyring.get_password() 抛出 NameError - keyring.get_password() throws NameError when reading credential from Windows Credential Manager 如何使用 Visual Studio 为 windows 编译 GMP - How to compile GMP for windows using Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM