Why doesn't Github show my installments even though I added my email address?

Last month, I made many commits for my main branch, but I realized that I did not have an email address added to my local git configuration settings. Now that I have added my email address, my contributions are still not displayed on the chart. Only new commits appear in contributions, but old commits (before adding my email address) are not displayed.

My impression is that they should appear, because when you add your email address, the tab schedule will be automatically rebuilt according to this statement from Git:

"If the email address used for commit has not been added to your GitHub profile, you must add the email address to your GitHub account. Your deposit graph will be automatically restored when you add a new address.

How to fix it?

thanks

+5
source share
3 answers

This is a problem with github. Have you been removed from the repository?

This happened to me until the last company I was in and all the commits that I added to the repository no longer appeared after I changed companies and was removed from the company repository. My whole story has been removed from the chart, and basically I said that I did nothing during this period.

+2
source

Git tracks the development history of a project. Thus, if you pushed and pushed the changes to the main repository before setting up your email address locally, these commits will not contain the identification information that GitHub uses to create its tab graph.

To find out if these commits contain your email address, add .patch to the GitHub url of the commit, as described here . If you don’t see the email address on the output, then the only way to add email information (and thus have your GitHub contribution graph filled with this fixer) is to rewrite the git history (e.g. using git push --force ), NB is NOT recommended, especially if other users use this repository.

0
source

My problem was not exactly the same, I deleted the old email address that I used for previous commits for another company repository. I added this old letter back to github and checked it, my previous commits were restored on the tab graph.

0
source

Source: https://habr.com/ru/post/1238359/


All Articles