使用Visual Studio时,我无法阻止我的BitBucket凭据存储在Windows凭据管理器中。
我使用所有三个命令取消了credential.helper
:
git config --global --unset credential.helper
git config --system --unset credential.helper
git config --unset credential.helper
有趣的是,运行上述命令后,credential.helper
设置仍然在Visual Studio存储库设置中显示manager
。
我甚至尝试在Windows服务中禁用Credential Manager,但所有这些都阻止我打开凭据管理器。凭证仍然存储!
我也尝试将credential.helper
设置为cache --timeout=600
,希望在10分钟后忘记凭证。但仍然存储凭证,并在10分钟后记住。
无法找到一种方法,所以现在我只使用Git Bash
。
我需要这样做,因为我正在使用共享虚拟机,并且不能将我的个人凭据存储在那里。