如果我在私有(private)仓库上运行类似下面的命令:
git ls-remote https://github.com/org/repo.git
我收到以下提示。
我正在使用 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/