使用push命令 將本地倉庫push到github時 報錯:
git push https://github.com/lexsaints/taobao_spider.git master
報錯信息如下:
remote: Resolving deltas: 100% (2/2), completed with 1 local object.
remote: error: GH007: Your push would publish a private email address.
remote: You can make your email public or disable this protection by visiting:
remote: http://github.com/settings/emails
To https://github.com/lexsaints/taobao_spider.git
! [remote rejected] master -> master (push declined due to email privacy restrictions)
error: failed to push some refs to 'https://github.com/lexsaints/taobao_spider.git'
我們根據上面的報錯信息提示,基本能確定是email的設置問題,所以進入到email的設置中進行修改:修改settings中的email選:按照下圖流程操作:
取消選中 之後,重新進入命令行,進行push操作。push成功
push成功後,查看github裏 提交的內容更新上去了