Github transfer contributions from one account to another
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
add a comment |
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
add a comment |
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
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
github
edited Nov 23 at 10:43
OhleC
1,728717
1,728717
asked Nov 23 at 7:46
roli roli
2,535918
2,535918
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
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
add a comment |
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.
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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