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
在这里,您可以输入您的实际凭证:重新输入用户数据验证自己的身份就好了