克隆私有存储库后 git 凭据存储在哪里 | windows 10

Where are the git credentials stored after cloning private repository | windows 10

这: 基本上是我的问题,但没有答案。

如果我通过 https 从我的 github 帐户克隆一个私人存储库,我会被要求输入一次用户名和密码。然后再也不会了。我在本地 .git 文件夹中查找是否可以找到任何纯文本密码,但我找不到任何密码。我还查看了 windows 用户文件夹中的 .git-凭据,其中有 none。在我的主文件夹中也没有 .config/git 文件夹。我到处搜索,但我不知道凭据存储在哪里。如果我将我的回购提交推送到服务器,它会直接执行而不要求我输入密码。

我正在使用 windows 10 和 git 版本 2.24.1.windows.2

凭据存储在 windows credentials

单击 start > control panel > 搜索 windows credentials > manage your credentials

在那里可以找到用于 git 的凭据。