使用git push到Github网站的时候提示:

push declined due to email privacy restrictions

原因

在Github设置里有一个隐私选项

Block command line pushes that expose my email

所以如果本地的git config里email地址与Github账号相同,为了防止个人邮件地件泄漏,git push会被拒绝。

解决方法

  1. 关闭这个选项
  2. 更改邮件地址

相关文章:

  • 2021-09-20
  • 2022-01-19
  • 2021-04-19
  • 2021-11-29
  • 2021-05-09
  • 2021-03-28
猜你喜欢
  • 2021-07-20
  • 2021-10-07
  • 2021-08-09
  • 2021-05-14
  • 2019-05-16
  • 2021-04-05
相关资源
相似解决方案