如果我在私有(private)存储库上运行类似于以下命令:

git ls-remote https://github.com/org/repo.git

我收到以下提示。

windows - github身份验证 token 在Windows上存储在哪里?-LMLPHP

我正在使用https://gitforwindows.org并查看“进程资源管理器”,看来生成此窗口的可执行文件是相对于Windows安装文件夹的Git的\mingw64\libexec\git-core\git-credential-manager.exe

当我输入凭据时,我从Github收到一封电子邮件,说创建了一个新的身份验证 token 。

该 token 存储在我的PC上的什么位置?当我重复上面的命令时,只要不再取消github网站上的 token ,我就不会再收到提示。

最佳答案

默认情况下,Git将使用Windows Credential Manager通过适用于Windows桌面的Github存储和检索Git凭据。

您可以在 Windows凭据选项卡上找到GitHub - https://api.github.com/{username}条目。

关于windows - github身份验证 token 在Windows上存储在哪里?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/58263306/

10-11 22:58
查看更多