push commit to github,却没有contributions的原因与解决

其实这个原因很简单,是因为本地项目中git config中的user.email与github上的email不一致

 

在项目目录中通过git bash运行git config user.email 可以查看当前的email address

 

通过git config user.email "aabbcc@gmail.com", 设置email address,请保持本地的email address和远端github的email address的一致

 

之后再push,就能在contributions里看到自己的提交了

 

P.S 

如果有两个git账号,可以通过git config --local设置该文件夹的一些配置,相对的另一个参数是--global

 

引用

https://help.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile/  原因

https://help.github.com/articles/setting-your-email-in-git/   解决方案

转载于:https://www.cnblogs.com/Raymond-Yang/p/5439093.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值