所在位置:首页 → 异常解决 → vsvcode中,push文件到gitee报错:无法推送refs到远端

vsvcode中,push文件到gitee报错:无法推送refs到远端

发布: 更新时间:2022-09-03 22:59:37

尝试了很多博主的方法,但是发现很多不能解决我的问题。最后看到一个解决办法说是使用

git push origin master -f

结果还是不行。然后在我多次尝试下,报了下面的错误。发现了问题。如下面红框出来的内容

remote: error: GE007: Your push would publish a private email address.
remote: You can make your email public or disable this protection by visiting:
remote: https://gitee.com/profile/emails

就是说我上传使用的邮箱是一个私有邮箱,不能用来传代码。。。

去到指示地址查看:https://gitee.com/profile/emails

可以看到我的邮箱是不公开的。是个私有的邮箱。把勾去掉。设置如下

然后再次去提交,就OK啦!

标签:, , , ,
文章排行