美文网首页
github提交无Contribution

github提交无Contribution

作者: ShineaSYR | 来源:发表于2020-08-06 14:55 被阅读0次

今天提交demo到GitHub上,忽然发现不能显示Contribution(代码提交记录),然后就自己搜索解决了该问题~

1. 为啥不显示——GitHub邮箱没设置

具体参考👉https://blog.csdn.net/gnail_oug/article/details/78284900
(1)设置公共邮箱显示,【settings】-【profile】-【Public email】,(因为之前自己抽风把邮箱显示关闭了);
(2)添加合适的邮箱&邮箱验证,https://github.com/settings/emails
以上两步骤看情况操作~

2.设置单独的user.email

具体参考👉https://blog.csdn.net/xiaoliu665114/article/details/66969957
不同的电脑,最初设置的有不同的git账号

// 查看当前git邮箱
git config user.email

// 全局修改git账号信息
git config --global user.name
git config --global user.email

到此为止,完成啦~~~

相关文章

网友评论

      本文标题:github提交无Contribution

      本文链接:https://www.haomeiwen.com/subject/pfwzrktx.html