ZBLOG

git config --global credential.helper store 这句话的username是哪个?

在运行 git config --global credential.helper store 命令时,其中的 username 参数不是指你的 GitHub 用户名,而是指你本地计算机上存储 Git 凭据的用户名。

当你使用基于 token 的身份验证方式时,Git 会将访问令牌存储在本地计算机上,并将其视为凭据。通过运行 git config --global credential.helper store 命令,Git 将把这些凭据保存在本地计算机上,以便您可以在需要进行 push 或 pull 操作时快速进行身份验证。

因此,在运行该命令时,请使用您希望用于本地 Git 凭据存储的用户名。例如:

git config --global user.name "Your Name"
git config --global credential.helper store

这将设置你的本地 Git 凭据存储使用 “Your Name” 作为用户名。

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=3486

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?