git 身份验证失败,更行用户账户

2022-06-22  本文已影响0人  开创Me世界

Git push:凭据丢失或无效。致命:身份验证失败'https://github.com/username/repo.git'

git config --list

这些不是“凭证”:它们不会帮助您通过GitHub这样的远程服务进行身份验证。

对于HTTPS URL( https://github.com/<me>/<myRepo> ),您需要:

git config --global credential.helper osxkeychain

在这里,您可以输入您的实际凭证:重新输入用户数据验证自己的身份就好了

上一篇 下一篇

猜你喜欢

热点阅读