Git推送错误“您必须验证您的电子邮件地址." [英] Git push error "You must verify your email address."

查看:109
本文介绍了Git推送错误“您必须验证您的电子邮件地址."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试推送到GitHub时,出现以下错误:

When I'm trying to push to GitHub, I get the following error:

remote: You must verify your email address.
remote: See https://github.com/settings/emails.
fatal: unable to access 'https://github.com/user/userRep.git/': The requested URL returned error: 403

我绝对确定我的电子邮件已经通过验证. 我尝试添加不带.git的远程URL,但这无济于事.

I am absolutely sure that my email is already verified. I've tried to add remote url without .git, but it didn't help.

推荐答案

我遇到了同样的错误.我怀疑这是由于git中缓存的凭据不正确(以前我使用不同的凭据提交了私有仓库)

I faced the same error. I suspect it was due to incorrect credentials cached in git (previously I committed to a private repo using different credentials)

解决了

git push https://username:password@github.com/user/userRep.git

执行此命令后,git push开始工作.

After executing this command, git push started to work.

这篇关于Git推送错误“您必须验证您的电子邮件地址."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆