Git坑点——remote: error: GH007: Your push would publish a private email address.


使用命令:git push -u origin master   ,把本地库的内容推送到远程库的过程中,出现了问题 ——remote: error: GH007: Your push would publish a private email address.

解决方法——在GitHub的你账号网页上右上角,个人的登录退出的位置,找到setting:    setting->emails->Keep my email address private,把这一项去掉勾选即可。

 

 

 windows系统中使用git时报错“warning: LF will be replaced by CRLF”解决方案:

$ rm -rf .git  // 删除.git  
$ git config --global core.autocrlf false  //禁用自动转换 

//然后重新执行

$ git init    
$ git add . 

 

rm -rf .git慎用!!!! 原因详见:https://www.zhihu.com/question/29438735 不小心敲了rm -rf后反应是怎样的?


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM