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

标签 windows git github

如果我在私有(private)仓库上运行类似下面的命令:

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

我收到以下提示。

enter image description here

我正在使用 https://gitforwindows.org并查看 Process Explorer,生成此窗口的可执行文件似乎是 \mingw64\libexec\git-core\git-credential-manager.exe相对于 Git for Windows 安装文件夹。

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

此 token 存储在我的 PC 上的什么位置?当我重复上面的命令时,我不再收到提示 - 只要我不撤销 github 网站上的 token 。

最佳答案

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

Credential Manager lets you view and delete your saved credentials for signing in to websites, connected applications, and networks.

To open Credential Manager, type credential manager in the search box on the taskbar and select Credential Manager Control panel. Select Web Credentials or Windows Credentials to access the credentials you want to manage.

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

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

相关文章:

Git SSH 问题 : Terminal works fine, 但所有 GUI 客户端都失败

java - 构建 URL - 几行困惑

html - Github Pages 站点未检测到 index.html

android-studio - 如何开始处理 GitHub 上的先前提交

git - Windows .bat 文件调度 git 添加、提交和推送到 Github

javascript - IIS6下运行的Node.js

c# - 引用错误 : Sys is not defined ReferenceError: WebForm_DoPostBackWithOptions is not definded

windows - 看了很多,还是无法让 Pathogen 在 Windows 下加载插件

Eclipse Egit 不会在工作区导入存储库

java模拟