![remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘

用一个新文件夹输入如下命令尝试一下
![remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘_第1张图片
如果中途报错可能是由于以下原因:

  • 公钥错误
    ![remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘_第2张图片

  • 账号密码错误
    ![remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘_第3张图片

  • 邮箱地址未设置为公开

![remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘_第4张图片
当然不设置成公开也是可以的不勾选禁止命令行推送暴露个人邮箱选项即可
![remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘_第5张图片
希望本篇文章能帮助更多的人

自我激励

努力永远不会骗人,总有一天你会发现你的坚持回报了你的期许。

你可能感兴趣的:(报错,git,git,github)