-
Notifications
You must be signed in to change notification settings - Fork 129
Keep Github commit graph when leaving an organization #1138
Comments
I feel the same way, I just got 7 months worth of commits disappear from my graph. :( |
Me too, my contribution for the whole last year just disappeared silently (& sadly as well ^^) |
I feel the same way. 3 and a half years of contributions gone :( . All email addresses are added to my account and I was always very careful to have my git config with the correct email to have my contributions added. It would be great to be able to keep them. |
Yea, especially with the "Job Profile" feature. It wouldn't make sense to use Github for evaluating anything other than open source contributions and personal projects, since as soon as you leave an employer, your commits are gone from view. |
I agree 100%. I've been coding for a company for the last 2 years, my commit graph looked amazing. I got a new job and now my commit graph looks like I've been dark for the last 2 years. NOT COOL |
Can we get some answers around this? I just lost over a year of commits after recently leaving a company. Does Github not see an issue with this? Has this already be explained elsewhere and I'm just not finding it? |
Oh yes please, we need some answers |
Not only did I lose my commits from my last company, but at my new company we are using GitLab. Im screwed. xD |
I have the same issue... |
so any news, anyone ever checked this? |
"We recommend starring any repositories you contribute to. That way, your commits to those repositories will remain in your contributions graph even if you leave the organization that owns the repository or delete your fork of the repository" from https://github.community/t5/Support-Protips/Getting-all-your-commits-in-your-contributions-graph/ba-p/19 |
Do read best practices for leaving your company as also mentioned by @ahmsolo, following is true,
|
So does that mean it's too late to keep commit records from a previous employer's repository if we didn't know about this at the time so didn't star the repository before we left? That seems unfair. |
@L-Lewis I was able to surface my commit history on the commit graph by turning on |
@veryspry It only shows a fraction of my commits to private repos. |
Same boat. Didn't star all of the repositories (wasn't aware of the necessity), now I've lost around 80% of the contributions that were on my graph. |
@veryspry thanks for the suggestion but unfortunately I've already tried that and it didn't make any difference. |
Not a solution as such, but for those aiming to leave soon it might be worth generating an image of your Github contributions history from this tool: https://github-contributions.now.sh/ Had to do this myself recently to protect against a freelance project which removed me from their organisation. |
Would be very helpful to restore the graph |
It is possible 🤓If you still have the codebase locally, you can reinitialize the repository and upload it as a new private repository to your account. That way every contribution will count but I don’t recommend it since your company’s code is strictly confidential and will probably contain sensitive data which potentially belongs to customers. I believe every one of us has signed not to distribute or share projects that are not open-sourced, and we must respect that. The funny thing is that staring the repositories indeed keeps your contributions, so let your friends know that and not make the same mistake as us. |
Regarding the advice to star the repos before leaving, does this mean that only commits post-starring will remain? Or is starring once sufficient to retain all past commits? |
@alyosha93 all commits will remain, so star the repository as soon as you can just in case. |
Do you have some steps for this? |
|
I have not tried this, but I am pretty sure that you will get all contributions back as soon as you star the repository any time. If you can do this, do it |
This Works perfectly. Steps are : |
I haven't been checking this, but I think @hasanabbax 's fix is probably the best. I'll have to try it when I get the chance, but I'm going to close this issue. |
UPDATE: This did work with the change of remote add origin as mentioned. @hasanabbax This did not work for me, unfortunately. Any ideas? Two things:
When I pushed up the repo to my own private repo, it does show all of the commit history (4k+ commits). But the graph remains unaffected. I waited more than 24 hrs as well to be sure, and still nothing. I did try starring the repo as well. Thanks in advance for any suggestions. |
I no longer have access to my old email and decided to delete it and now most of my contribution graph was gone all of a sudden. I was really careful at doing so, is there a solution for it? |
Well GitHub should fix this as this impose security issues such as people making new private repository with Organization's code just to save their contribution graph. Also, I've tried starring private repos and leave that repo. Still commits from the graph vanished but when added back as a contributor, the graph showed my contributions again. |
What's the point of making people jump through hoops to get back the expected behavior? It should work right by default. |
So go to any commit and add .patch at the URL so you can see your old email then just include that email in the list at your account settings without verifying it. |
Just FYI : Today is 2020.05.01. if ur still in the organization and star all repos you make contributions, then the commit history will still display in the graph even after you leave the org. You can check my profile for more details. Im doing my 8-month coop from 2019.09-2020.04 and have left the organization, you can still see my private contributions in my commit graph. |
I'm glad that I found this thread! I just got most--if not all--of my activities back on my contribution graph by starring all repositories to which I contributed while working for my past employer. Apparently, this trick works even if you star the repos after you leave the organization. |
I tried to those steps but it didnt work:
The commit history about this repo is removed from my graph, but once I added myself once again it shown back. Is there any solution that I can transfer the ownership of any repo but at the sametime I can still maintain the commit history without making another private Repos? |
I starred all the repos and still lost the contributions. |
Maybe they deleted the repository? Have you checked that?
…Sent from my iPhone
On 17 Jul 2020, at 12:31 AM, John Uhri ***@***.***> wrote:
I starred all the repos and still lost the contributions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi! Similar problem here: organisation removed ppl by mistake and the repo which I contributed to has been deleted... Does anyone know of any solutions? |
Please GitHub. I don't want to loose any contributions I made. For which I actually gave my time to. It just makes no sense in the way they're gone. |
why is this closed? the problem isn't solved at all. I follow the rule from here The email address used for the commits is associated with your GitHub account? YES AND I HAVE STARRED THE REPO YES I HAVE STARRED THE REPO AND? I still lost the contributions and there's no more solutions here |
This is still a hot topic so why close it? |
How come this is closed? |
It sucks that you have to star the repo to make it count. I hadn't starred a repo to which I was the main contributor before leaving the org, and now all my commits are gone from my contribution graph. The starring of the repo is an unnecessary, redundant step. |
I know, and totally agree. Let's just learn from our mistakes :D
…On Wed, Dec 23, 2020 at 8:13 PM Giulio Starace ***@***.***> wrote:
It sucks that you have to star the repo to make it count. I hadn't starred
a repo to which I was the main contributor before leaving the org, and now
all my commits are gone from my contribution graph.
The starring of the repo is an unnecessary, redundant step.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1138 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUO65UDWAAX4GNGKOTNCPLSWIXOFANCNFSM4EGWYRCA>
.
--
Regards,
Dimitrios Filippou
Lead Software Engineer at "Sportion DS"
LinkedIn <https://www.linkedin.com/in/dimitrios-filippou-98a703131/> |
Website <https://jimfilippou.github.io> | GitHub
<https://github.com/jimfilippou>
|
Additionally, what if you're using your company email in your commits and then you leave. What will happen to your private contributions given that you starred the repo? |
In the Github documentation, they say:
Which means you don't need to star the repository if you have opened a PR or an issue. Can anyone confirm this? |
From Best practices for leaving your company:
I didn't star any of the organisation repositories before leaving and I had created PRs and Issues on all of them. I have all my contributions showing up on the commit-graph. I am not sure what happens if the company decides to delete the repositories and/or move out their code from GitHub. |
I'm a project manager and am getting heat from an employee who we recently let go because despite having starred the repo, his contribution graph for the last year has just been cleaned out. Has anyone found a valid solution for fixing this yet? |
@ShepSims If commits were made using a company email, they can remove that email and re-add it without verification to keep the associated commit history.
|
@ShepSims Even if one configures the former work address as a secondary email in one's private account, having stars alone is not enough to count the commits if the repositories are private. GitHub support told me this was because "stars don't persist after leaving an org," which is dubious, since I rejoined my org temporarily and the exact same repositories I had starred were still starred. However, if you have at least one issue or PR entered under the personal address, then all commits under the secondary email will be counted. I was able to re-join the org temporarily after leaving (thanks to good grace of my employer) and add a dummy issue to each repo, and then after being removed again, all my commits from the secondary email were counted in the graph of my personal account. |
Hi,
I was wondering if we could keep the github commit graph if we leave an organization? I worked really hard for an organization and had more than 2000 contributions for a particular repository and worked overtime many times. I left the company, and now I lost all the commit record on the commit graph. I felt since the commit graph didn't actually show the content of the commits it should be okay to keep the old graph since I was really proud of showcasing how hard I worked for the previous organization. Plus I think it would help recruiters who want to use the app to see how much people have contributed in general.
It's okay if this doesn't get fixed but I wanted to at least know what's wrong with having the commit graph show commits that you made to an organization that you are no longer part of.
Thanks in advance.
The text was updated successfully, but these errors were encountered: