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