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

前端 未结 27 1154
南笙
南笙 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:34

    You can keep your email private and still have the contributions show up in your calendar. You can choose to keep your email address private from the github email settings and use the github noreply email address in your git config.

    git config user.email "xxxxxxxxxxx@users.noreply.github.com"
    

    Note

    For me, I had chosen to keep my email private from the github email settings. This gave me an error

    Your push would publish a private email address.
    

    while trying to push to my repo. I removed the email. Pushing after this was successful but the contributions were not recorded in my calendar.

    As mentioned by GitHub in the email settings page

    We’ll remove your public profile email and use xxxxxxxxxxx@users.noreply.github.com when performing web-based Git operations (e.g. edits and merges) and sending email on your behalf. If you want command line Git operations to use your private email you must set your email in Git.

提交回复
热议问题