---
title: "Discussion on \"Don't lose your Github contributions when you leave an organization\" | Hashnode"
description: "Discussion on \"Don't lose your Github contributions when you leave an organization\". Best practices for leaving your company"
url: "https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Don't lose your Github contributions when you leave an organization](https://blog.vikrantbhat.com/dont-lose-your-github-contributions-when-you-leave-an-organization?utm_source=hashnode&utm_medium=feed)

Best practices for leaving your company

May 28, 2022 · 3 min read · blog.vikrantbhat.com  
Updated May 29, 2022  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#repository](https://hashnode.com/tag/repository)

## Written by

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

@bhatvikrant · Delhi, India

  
[View profile](https://hashnode.com/@bhatvikrant)

The irony is, I am a web developer but I am shit scared of spiders. Javascript && React ⚛️

Senior Frontend Engineer @ Razorpay

## Responses 21

Markdown supported · ⌘↵ to post

[Mikko Rantalainen](https://hashnode.com/@mtrantalainen)

[Jun 2](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6a1ef706fd2f7a11ab9722ef)

Can you add the unverified email after leaving the organization and still get the correct credit for contributions? And if yes, is there any mechanism to prevent taking other people's credit simply by adding unverified email accounts to your profile?

[Sachindra](https://hashnode.com/@sachindra149)

[Dec 25, 2023](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6588f8b91b3ca537efce094d)

But what if Github is managed as an enterprise repository and the organization does not allow any external collaboration??

[vikram vijai](https://hashnode.com/@vvsasa)

[Jun 28, 2023](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/649c639b209eff9b1a1fad24)

gist.github.com/Vikram710/098db6fb8da22864a8bfbb6e2f1c1d4f a simple script to star the repos that you contributed in your organization

[Piyush Aggarwal](https://hashnode.com/@piyushnode)

[Dec 11, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6395822a15750808b269c3b2)

I tried to recreate this. I created a private repo and gave access to another account B. Made a commit with GitHub interface using account B and the private contribution was showing up right everywhere. I starred the repo from account B. And removed access to account B.

The contribution was gone. Am I missing something? How do I make this work?

[Vinay Kumar](https://hashnode.com/@vinayskywalker)

[Jul 4, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/62c263bec0401b3dcbcfbccf)

This is great and Thanks for sharing but I think it wont work in my case because I have two GitHub accounts(One for Personal and another was given to me by company) and All the repository are private. Is it possible to transfer? (I don't think so).

[Luka D'sant](https://hashnode.com/@Lukadsant)

[Jun 30, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/62bd8721394887107787a17f)

cool!!! It's really helpful

[Randy Knight](https://hashnode.com/@RandyKnight)

[Jun 15, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/62a9c312b68bba1634b78d38)

I had no idea this would happen. 😮 Thank you very much, Vikrant Bhat!

[Camille Dugas](https://hashnode.com/@Bluzzi)

[Jun 2, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6298c6e3c9d0c9130286e928)

Hi, I tried this with the method that consists in putting a star on the repository of the organization before leaving it but I still lost my commits, do you know why?

[Rafael Andrade](https://hashnode.com/@Rafanoli)

[Jun 23, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6298c6e3c9d0c9130286e928#reply-62b4f33f92447c9aed5b37e4)

Same here, I tried the star method but It is not appearing. We have an OAuth method to sign into the org, do you think this could impact?

[Diego Ballesteros (Relatable Code)](https://hashnode.com/@diegoballesteros)

[Jun 1, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6297627d8ec91103236a34b7)

I had no idea this was even a thing. Thanks a lot for sharing. Definitely going to star the repo now.

[Kieran Roberts](https://hashnode.com/@kieran6roberts)

[May 31, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6296173c8181eeee2a1b2c99)

Probably something I wouldn't have otherwise known about. I'm not planning on leaving my role anytime soon 😄, but it's a cool little thing to know and I'm sure others will appreciate!

Thanks for sharing Vikrant!

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[Jun 1, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6296173c8181eeee2a1b2c99#reply-62970f25a3d046f9e9e70d16)

Thank you for the kind words [Kieran Roberts](https://hashnode.com/@kieran6roberts)

[Okosun Mary](https://hashnode.com/@marynoir)

[May 31, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6295f4a7e78667ee04ce6876)

Really helpful information 👌 [Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[Jun 1, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6295f4a7e78667ee04ce6876#reply-62970f69d84600f9c4ff1b45)

🙌🏻

[Akebu](https://hashnode.com/@akebu6)

[May 31, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6295c65fcd4bd2ecf7ef2b84)

This is really helpful information even for students to know now before we get into the industry!!

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[Jun 1, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6295c65fcd4bd2ecf7ef2b84#reply-62970f60d84600f9c4ff1b40)

🙌🏻

[Kevin Xu](https://hashnode.com/@KevThatDevs)

[May 31, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/629584cde3ae5fe487203aa3)

Awesome! Love the article on keeping the GitHub commit advice for hopping around different organizations!

[Aditya Tiwari](https://hashnode.com/@namedaditya)

[May 31, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/62958264e3ae5fe487203a7f)

I saw your github skyline 2021. It was a treat to my eyes

[Ali Chaudhary](https://hashnode.com/@AliChaudhary)

[May 30, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6294c8b222c65adc00272754)

Hello sounded great. But when I tried, it says .. "Error adding Alichaudhary_\*_@gmail.com: email is already in use". How can one deal it ? looking forward

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[May 31, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6294c8b222c65adc00272754#reply-62958d4f403d01e31b771211)

The email that you are adding must not be linked to another github account. In your case it seems to be linked to another one.

[Ali Chaudhary](https://hashnode.com/@AliChaudhary)

[May 31, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6294c8b222c65adc00272754#reply-62959035403d01e31b77123f)

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

Hello Vikrant, So how can one suppose to add his single personal github email in the replacement of different company's emails in which he has worked in different times ? I mean how he can add his personal email if one has to give that email which is not already in use ? Thanks,

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[Jun 1, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6294c8b222c65adc00272754#reply-62970efdd84600f9c4ff1b2d)

[Ali Chaudhary](https://hashnode.com/@AliChaudhary) one can't do that. You had to use your personal email from the start and should have added your work email in your personal GitHub account

[Victor Eke](https://hashnode.com/@Eke)

[May 29, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6293ded30989e6b52feb1e0b)

This has never occurred to me. Thanks for sharing this vital piece of information [Vikrant Bhat](https://hashnode.com/@bhatvikrant). ⭐️

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[May 30, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6293ded30989e6b52feb1e0b#reply-62946680d97f80b5091dc941)

🙌🏻😄

[CodeWithKenn](https://hashnode.com/@CodeWithKenn)

[May 29, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/629361350989e6b52feb10b7)

Thanks for sharing, man! This helps a lot of People...

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[May 29, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/629361350989e6b52feb10b7#reply-629384660989e6b52feb14c5)

Glad it was helpful 🙌🏻

[nikhilkuyya](https://hashnode.com/@nikhilkuyya)

[May 28, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/62920f29d97f80b5091d920d)

I have two accounts in GitHub one with personal and one is company professional address. Can we get the stars to my public personal account.

-   Can i make the office account with public email address and star the private repo to get the commits.

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[May 29, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/62920f29d97f80b5091d920d#reply-6293485e0989e6b52feb0e39)

If you’ve added your company email address to your personal github account then it will work, otherwise not.

[Suprabha Supi](https://hashnode.com/@suprabhasupi)

[May 28, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/62920bcbd97f80b5091d91a7)

Nice article 🙏🏼 Sometimes devs missed this, and later when they leave it gets recognized that it's not showing in the account 😅

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[May 29, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/62920bcbd97f80b5091d91a7#reply-62934823d97f80b5091dad15)

Thankyou! 🙌🏻

[Avinash Vagh](https://hashnode.com/@avinashvagh)

[May 28, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6291e2f6d97f80b5091d8caf)

Wow !!! It's very much helpful in one's career 🔥

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[May 29, 2022](https://hashnode.com/posts/dont-lose-your-github-contributions-when-you-leave-an-organization/6291c2760989e6b52feaea73/comment/6291e2f6d97f80b5091d8caf#reply-62934807d97f80b5091dacfb)

Glad you found it useful 🙌🏻
