Windows 上的 github 身份验证令牌存储在哪里? [英] Where is github authentication token stored on Windows?

查看:50
本文介绍了Windows 上的 github 身份验证令牌存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在私有存储库上运行类似于以下内容的命令:

If I run a command similar to the following on a private repository:

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

我收到以下提示.

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

I'm using https://gitforwindows.org and looking at the Process Explorer, it appears that the executable that produces this window is \mingw64\libexec\git-core\git-credential-manager.exe relative to Git for Windows installation folder.

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

When I put in my credentials, I'm getting an email from Github, saying that a new authentication token is created.

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

Where is this token stored on my PC? When I repeat the command above I'm no longer getting the prompt - as long as I do not revoke the token on the github web site.

推荐答案

默认情况下,Git 将使用 Windows 凭据管理器,用于通过适用于 Windows 桌面的 Github 存储和检索 Git 凭据.

By default, Git will use the Windows Credential Manager for storing and retrieving Git credentials via Github for Windows desktop.

凭据管理器可让您查看和删除用于登录网站、连接的应用程序和网络的已保存凭据.

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

要打开凭据管理器,请在任务栏上的搜索框中键入凭据管理器,然后选择凭据管理器控制面板.选择Web 凭据Windows 凭据 以访问您要管理的凭据.

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} 条目.

You will find the GitHub - https://api.github.com/{username} entry on the Windows Credentials tab.

这篇关于Windows 上的 github 身份验证令牌存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆