首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为什么‘Git全局credential.helper`在我似乎使用Git凭证管理器核心时会显示?

为什么‘Git全局credential.helper`在我似乎使用Git凭证管理器核心时会显示?
EN

Stack Overflow用户
提问于 2022-12-03 09:42:22
回答 1查看 18关注 0票数 1

据我了解,Git凭证经理核心Git凭据管理器Windows凭据并不相同。在使用此命令之后

printf "host=github.com\nprotocol=https\nusername=ooker777\npassword=ghp_yourToken" | git credential-manager-core store

我能推。检查Windows凭据--我只看到我的GitHub密码存储在那里--这将无法工作,因为GitHub要求它是令牌。所以很明显我不是在用wincred。

然而,git config --global credential.helper仍然显示我正在使用wincred。为什么会这样呢?

EN

回答 1

Stack Overflow用户

发布于 2022-12-03 10:23:20

wincred是Windows上遗留的凭证存储

它已被GCM (Git凭据管理器)和")取代

如果您升级了用于Windows的Git,您可以安全地将凭据助手更改为manager。

代码语言:javascript
运行
复制
# up to Git 2.38.1 on Windows
git config --global credential.helper manager-core

# Git 2.39+
git config --global credential.helper manager
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74665534

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档