![图片[1] - vsvcode中,push文件到gitee报错:无法推送refs到远端 - 正则时光](https://www.regular.cc/wp-content/uploads/2023/11/202209031444552.png)
尝试了很多博主的方法,但是发现很多不能解决我的问题。最后看到一个解决办法说是使用
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
![图片[2] - vsvcode中,push文件到gitee报错:无法推送refs到远端 - 正则时光](https://www.regular.cc/wp-content/uploads/2023/11/2022090314542159-1024x305.png)
就是说我上传使用的邮箱是一个私有邮箱,不能用来传代码。。。
去到指示地址查看:https://gitee.com/profile/emails
![图片[3] - vsvcode中,push文件到gitee报错:无法推送refs到远端 - 正则时光](https://www.regular.cc/wp-content/uploads/2023/11/2022090314561932.png)
可以看到我的邮箱是不公开的。是个私有的邮箱。把勾去掉。设置如下
![图片[4] - vsvcode中,push文件到gitee报错:无法推送refs到远端 - 正则时光](https://www.regular.cc/wp-content/uploads/2023/11/2022090314582081.png)
然后再次去提交,就OK啦!
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END