Github transfer contributions from one account to another












0














I have googled it a lot but didn't find any clear answer if it possible and how to do it.



I have an account from which I have contributions to a private repo. I don't have any repositories.



I want all those contributions to go to my new account (There I have repositories).



Is that possible? Do I still have access to that private repo after transfer the contributions?










share|improve this question





























    0














    I have googled it a lot but didn't find any clear answer if it possible and how to do it.



    I have an account from which I have contributions to a private repo. I don't have any repositories.



    I want all those contributions to go to my new account (There I have repositories).



    Is that possible? Do I still have access to that private repo after transfer the contributions?










    share|improve this question



























      0












      0








      0







      I have googled it a lot but didn't find any clear answer if it possible and how to do it.



      I have an account from which I have contributions to a private repo. I don't have any repositories.



      I want all those contributions to go to my new account (There I have repositories).



      Is that possible? Do I still have access to that private repo after transfer the contributions?










      share|improve this question















      I have googled it a lot but didn't find any clear answer if it possible and how to do it.



      I have an account from which I have contributions to a private repo. I don't have any repositories.



      I want all those contributions to go to my new account (There I have repositories).



      Is that possible? Do I still have access to that private repo after transfer the contributions?







      github






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 at 10:43









      OhleC

      1,728717




      1,728717










      asked Nov 23 at 7:46









      roli roli

      2,535918




      2,535918
























          2 Answers
          2






          active

          oldest

          votes


















          1














          You would need to rewrite commits which would create new hashes (the committer's name is part of the data used to calculate the hash).



          This would mean all commits that reference these commits (the parent commits also being part of the data used to calculate the hash) would also need to be regenerated (rebase allows this to be done in bulk).



          All of this would require forcing pushes as well (so all other contributor's local repositories are going to be impacted).



          Even if github can automate some of this, it is a massive impact.



          TL;DR: yes, but you probably should accept it is hard to rewrite history.






          share|improve this answer





















          • So If I merge the 2 accounts the contribution will not merged?
            – roli roli
            Nov 23 at 8:15










          • @roliroli Certainly the content of the repository won't be updated (GitHub might alias things, but that's not the underlying data).
            – Richard
            Nov 23 at 9:02



















          1














          Guessing from the tags I assume you're talking about GitHub accounts. GitHub calculates contributions based on the author email address used in Git commits, and if there is a GitHub account that uses this email address, your GitHub user name shows up as a contributor. That said, you can associate multiple email addresses with a single GitHub account. So if you unregister your current email address from your old GitHub account, and register the same email address for your new GitHub account, existing contributions will show under your new GitHub account.




          Do I still have access to that private repo after transfer the contributions?




          That's a totally different question, and the answer depends on whether your new GitHub account was given access to the private repository. The GitHub permissions system is based on the GitHub user name, not on registered email addresses.






          share|improve this answer





















          • The problem is that the accounts using different email addresses.
            – roli roli
            Nov 23 at 9:26










          • Like I tried to state above, that should not be a problem. When logged in under your new account, just go to github.com/settings/emails and use "Add email address" to also add the email address from your old account here. It might be that you need to remove that email address from your old account first, though, as I assume GitHub checks that a single email address is not registered with two accounts at the same time.
            – sschuberth
            Nov 23 at 10:50










          • So I removed the mail from old account I added it to the new one I clicked the checkbox to show private contributions but the contribution do not show at all
            – roli roli
            Nov 23 at 11:23










          • You might need to give it some time, GitHub may only update these statistics once a day or so.
            – sschuberth
            Nov 23 at 11:56










          • Ah ok thanks!!!
            – roli roli
            Nov 23 at 11:56











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53442548%2fgithub-transfer-contributions-from-one-account-to-another%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          You would need to rewrite commits which would create new hashes (the committer's name is part of the data used to calculate the hash).



          This would mean all commits that reference these commits (the parent commits also being part of the data used to calculate the hash) would also need to be regenerated (rebase allows this to be done in bulk).



          All of this would require forcing pushes as well (so all other contributor's local repositories are going to be impacted).



          Even if github can automate some of this, it is a massive impact.



          TL;DR: yes, but you probably should accept it is hard to rewrite history.






          share|improve this answer





















          • So If I merge the 2 accounts the contribution will not merged?
            – roli roli
            Nov 23 at 8:15










          • @roliroli Certainly the content of the repository won't be updated (GitHub might alias things, but that's not the underlying data).
            – Richard
            Nov 23 at 9:02
















          1














          You would need to rewrite commits which would create new hashes (the committer's name is part of the data used to calculate the hash).



          This would mean all commits that reference these commits (the parent commits also being part of the data used to calculate the hash) would also need to be regenerated (rebase allows this to be done in bulk).



          All of this would require forcing pushes as well (so all other contributor's local repositories are going to be impacted).



          Even if github can automate some of this, it is a massive impact.



          TL;DR: yes, but you probably should accept it is hard to rewrite history.






          share|improve this answer





















          • So If I merge the 2 accounts the contribution will not merged?
            – roli roli
            Nov 23 at 8:15










          • @roliroli Certainly the content of the repository won't be updated (GitHub might alias things, but that's not the underlying data).
            – Richard
            Nov 23 at 9:02














          1












          1








          1






          You would need to rewrite commits which would create new hashes (the committer's name is part of the data used to calculate the hash).



          This would mean all commits that reference these commits (the parent commits also being part of the data used to calculate the hash) would also need to be regenerated (rebase allows this to be done in bulk).



          All of this would require forcing pushes as well (so all other contributor's local repositories are going to be impacted).



          Even if github can automate some of this, it is a massive impact.



          TL;DR: yes, but you probably should accept it is hard to rewrite history.






          share|improve this answer












          You would need to rewrite commits which would create new hashes (the committer's name is part of the data used to calculate the hash).



          This would mean all commits that reference these commits (the parent commits also being part of the data used to calculate the hash) would also need to be regenerated (rebase allows this to be done in bulk).



          All of this would require forcing pushes as well (so all other contributor's local repositories are going to be impacted).



          Even if github can automate some of this, it is a massive impact.



          TL;DR: yes, but you probably should accept it is hard to rewrite history.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 23 at 8:00









          Richard

          88.3k17150218




          88.3k17150218












          • So If I merge the 2 accounts the contribution will not merged?
            – roli roli
            Nov 23 at 8:15










          • @roliroli Certainly the content of the repository won't be updated (GitHub might alias things, but that's not the underlying data).
            – Richard
            Nov 23 at 9:02


















          • So If I merge the 2 accounts the contribution will not merged?
            – roli roli
            Nov 23 at 8:15










          • @roliroli Certainly the content of the repository won't be updated (GitHub might alias things, but that's not the underlying data).
            – Richard
            Nov 23 at 9:02
















          So If I merge the 2 accounts the contribution will not merged?
          – roli roli
          Nov 23 at 8:15




          So If I merge the 2 accounts the contribution will not merged?
          – roli roli
          Nov 23 at 8:15












          @roliroli Certainly the content of the repository won't be updated (GitHub might alias things, but that's not the underlying data).
          – Richard
          Nov 23 at 9:02




          @roliroli Certainly the content of the repository won't be updated (GitHub might alias things, but that's not the underlying data).
          – Richard
          Nov 23 at 9:02













          1














          Guessing from the tags I assume you're talking about GitHub accounts. GitHub calculates contributions based on the author email address used in Git commits, and if there is a GitHub account that uses this email address, your GitHub user name shows up as a contributor. That said, you can associate multiple email addresses with a single GitHub account. So if you unregister your current email address from your old GitHub account, and register the same email address for your new GitHub account, existing contributions will show under your new GitHub account.




          Do I still have access to that private repo after transfer the contributions?




          That's a totally different question, and the answer depends on whether your new GitHub account was given access to the private repository. The GitHub permissions system is based on the GitHub user name, not on registered email addresses.






          share|improve this answer





















          • The problem is that the accounts using different email addresses.
            – roli roli
            Nov 23 at 9:26










          • Like I tried to state above, that should not be a problem. When logged in under your new account, just go to github.com/settings/emails and use "Add email address" to also add the email address from your old account here. It might be that you need to remove that email address from your old account first, though, as I assume GitHub checks that a single email address is not registered with two accounts at the same time.
            – sschuberth
            Nov 23 at 10:50










          • So I removed the mail from old account I added it to the new one I clicked the checkbox to show private contributions but the contribution do not show at all
            – roli roli
            Nov 23 at 11:23










          • You might need to give it some time, GitHub may only update these statistics once a day or so.
            – sschuberth
            Nov 23 at 11:56










          • Ah ok thanks!!!
            – roli roli
            Nov 23 at 11:56
















          1














          Guessing from the tags I assume you're talking about GitHub accounts. GitHub calculates contributions based on the author email address used in Git commits, and if there is a GitHub account that uses this email address, your GitHub user name shows up as a contributor. That said, you can associate multiple email addresses with a single GitHub account. So if you unregister your current email address from your old GitHub account, and register the same email address for your new GitHub account, existing contributions will show under your new GitHub account.




          Do I still have access to that private repo after transfer the contributions?




          That's a totally different question, and the answer depends on whether your new GitHub account was given access to the private repository. The GitHub permissions system is based on the GitHub user name, not on registered email addresses.






          share|improve this answer





















          • The problem is that the accounts using different email addresses.
            – roli roli
            Nov 23 at 9:26










          • Like I tried to state above, that should not be a problem. When logged in under your new account, just go to github.com/settings/emails and use "Add email address" to also add the email address from your old account here. It might be that you need to remove that email address from your old account first, though, as I assume GitHub checks that a single email address is not registered with two accounts at the same time.
            – sschuberth
            Nov 23 at 10:50










          • So I removed the mail from old account I added it to the new one I clicked the checkbox to show private contributions but the contribution do not show at all
            – roli roli
            Nov 23 at 11:23










          • You might need to give it some time, GitHub may only update these statistics once a day or so.
            – sschuberth
            Nov 23 at 11:56










          • Ah ok thanks!!!
            – roli roli
            Nov 23 at 11:56














          1












          1








          1






          Guessing from the tags I assume you're talking about GitHub accounts. GitHub calculates contributions based on the author email address used in Git commits, and if there is a GitHub account that uses this email address, your GitHub user name shows up as a contributor. That said, you can associate multiple email addresses with a single GitHub account. So if you unregister your current email address from your old GitHub account, and register the same email address for your new GitHub account, existing contributions will show under your new GitHub account.




          Do I still have access to that private repo after transfer the contributions?




          That's a totally different question, and the answer depends on whether your new GitHub account was given access to the private repository. The GitHub permissions system is based on the GitHub user name, not on registered email addresses.






          share|improve this answer












          Guessing from the tags I assume you're talking about GitHub accounts. GitHub calculates contributions based on the author email address used in Git commits, and if there is a GitHub account that uses this email address, your GitHub user name shows up as a contributor. That said, you can associate multiple email addresses with a single GitHub account. So if you unregister your current email address from your old GitHub account, and register the same email address for your new GitHub account, existing contributions will show under your new GitHub account.




          Do I still have access to that private repo after transfer the contributions?




          That's a totally different question, and the answer depends on whether your new GitHub account was given access to the private repository. The GitHub permissions system is based on the GitHub user name, not on registered email addresses.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 23 at 8:17









          sschuberth

          16.9k462105




          16.9k462105












          • The problem is that the accounts using different email addresses.
            – roli roli
            Nov 23 at 9:26










          • Like I tried to state above, that should not be a problem. When logged in under your new account, just go to github.com/settings/emails and use "Add email address" to also add the email address from your old account here. It might be that you need to remove that email address from your old account first, though, as I assume GitHub checks that a single email address is not registered with two accounts at the same time.
            – sschuberth
            Nov 23 at 10:50










          • So I removed the mail from old account I added it to the new one I clicked the checkbox to show private contributions but the contribution do not show at all
            – roli roli
            Nov 23 at 11:23










          • You might need to give it some time, GitHub may only update these statistics once a day or so.
            – sschuberth
            Nov 23 at 11:56










          • Ah ok thanks!!!
            – roli roli
            Nov 23 at 11:56


















          • The problem is that the accounts using different email addresses.
            – roli roli
            Nov 23 at 9:26










          • Like I tried to state above, that should not be a problem. When logged in under your new account, just go to github.com/settings/emails and use "Add email address" to also add the email address from your old account here. It might be that you need to remove that email address from your old account first, though, as I assume GitHub checks that a single email address is not registered with two accounts at the same time.
            – sschuberth
            Nov 23 at 10:50










          • So I removed the mail from old account I added it to the new one I clicked the checkbox to show private contributions but the contribution do not show at all
            – roli roli
            Nov 23 at 11:23










          • You might need to give it some time, GitHub may only update these statistics once a day or so.
            – sschuberth
            Nov 23 at 11:56










          • Ah ok thanks!!!
            – roli roli
            Nov 23 at 11:56
















          The problem is that the accounts using different email addresses.
          – roli roli
          Nov 23 at 9:26




          The problem is that the accounts using different email addresses.
          – roli roli
          Nov 23 at 9:26












          Like I tried to state above, that should not be a problem. When logged in under your new account, just go to github.com/settings/emails and use "Add email address" to also add the email address from your old account here. It might be that you need to remove that email address from your old account first, though, as I assume GitHub checks that a single email address is not registered with two accounts at the same time.
          – sschuberth
          Nov 23 at 10:50




          Like I tried to state above, that should not be a problem. When logged in under your new account, just go to github.com/settings/emails and use "Add email address" to also add the email address from your old account here. It might be that you need to remove that email address from your old account first, though, as I assume GitHub checks that a single email address is not registered with two accounts at the same time.
          – sschuberth
          Nov 23 at 10:50












          So I removed the mail from old account I added it to the new one I clicked the checkbox to show private contributions but the contribution do not show at all
          – roli roli
          Nov 23 at 11:23




          So I removed the mail from old account I added it to the new one I clicked the checkbox to show private contributions but the contribution do not show at all
          – roli roli
          Nov 23 at 11:23












          You might need to give it some time, GitHub may only update these statistics once a day or so.
          – sschuberth
          Nov 23 at 11:56




          You might need to give it some time, GitHub may only update these statistics once a day or so.
          – sschuberth
          Nov 23 at 11:56












          Ah ok thanks!!!
          – roli roli
          Nov 23 at 11:56




          Ah ok thanks!!!
          – roli roli
          Nov 23 at 11:56


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53442548%2fgithub-transfer-contributions-from-one-account-to-another%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Contact image not getting when fetch all contact list from iPhone by CNContact

          count number of partitions of a set with n elements into k subsets

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks