
尝试了很多博主的方法,但是发现很多不能解决我的问题。最后看到一个解决办法说是使用
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啦!
原创文章,作者:三酷猫,如若转载,请注明出处:https://www.sankumao.com/2415.html