GitHub commits aren't recorded in the 'Your Contributions` calendar

前端 未结 27 1199
南笙
南笙 2021-01-29 21:59

I\'ve been making continuous commits to my GitHub repos from my linux shell and they show up nicely on the website just as they should. The only problem is that \"Y

27条回答
  •  感情败类
    2021-01-29 22:15

    I had the same exact problem, turns out it is because the email on my local git does not match the email on my GitHub account.

    To update the email on your local machine:

    git config --global user.email "your.email@email.com"
    

    Verify that all your commits are updated on your github, if not you can check individual commits to see what email the commit is associated with by clicking on the commit and adding ".patch" to the end of the commit url like this:

    https://github.com/username/repoName/commit/9fbe83f71cfc3503.patch
    

    Now all you have to do is add that email you see to your account.(It does not need to be verified)

    Check the commit again and you should see your username and credited :)

提交回复
热议问题