Merge two github accounts - github

Is it possible to merge two GitHub accounts into one?
I had one work account but would like to merge into a personal one.
I found some details about transferring ownership of the own repos which will merge all commit history etc.
Could anyone please confirm if it will transfer all commit history for any contributions made to another third party repos?
What will happen in the third party repos where I have made contributions from work account after the work account is deleted?

That is what describes "Merging multiple personal accounts"
And its repository transfer process (from the account you want to delete to the account you want to keep) should transfer issues, pull requests, and wikis.
You will need to add the email address you used to author the commits (of the old account) to the account you're keeping.
That way, your old contributions will be preserved.

I logged a support ticket with github and below is the summary:
After deleting work account and following steps as mentioned https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository did not bring contributions across to the personal account.
As work account was deleted - it started showing as a ghost account.
The commits made through work account were as from the personal acccount but contribution history (PR or any reviews) didn't come across to the personal account.
So make sure you think of above steps before removing any of your Github account.
Below were responses from Github:
As pull requests, issues and all activity in the GitHub web UI excluding commits are directly tied to the account that created them, they will not be counted on the new account even if you add the old account's email address to the new account.
Pull requests are replaced with the ghost user when the account is deleted. On the other hand, we read the email address from the metadata stored inside a commit and attempt to match commits up with a user account, so those that meet the contribution criteria will be counted on the new account.

Related

How to send github activity feed graph from your organisational account to your personal github account?

As my organizational GitHub account is xyz#github.com and I have made a lot of contributions to that, and I really like the green dots, is there any way I can send the activity feed to my personal GitHub account from email id (abc#github.com)?
I just want to send these green dots to my personal email :(
feed image
You can't transfer activity from one account to another like that. The contribution graph lists all activity created by your account and only your account.
The only way you'd be able to transfer activity is if you removed the email address specified in the commits made by your organizational account and associated it with your personal account. Because GitHub uses the email address in the commits to attribute the commits to an account, that would make those commits be associated with your personal account.
However, this doesn't transfer activity other than commits from one account to another. This is intentionally not transferable because doing so can lead to misattribution and abuse.
I should point out that while the contribution graph is a neat feature, it's not a measure of your self-worth or your competence as a developer and so you shouldn't worry about how densely it's populated.

I need a way to create an action for github

The scenario is that I'm working in a company that uses a GitLab Empresarial account so that we can perform commits and work with it.
But I have a personal account on GitHub and GitLab, I need a way that I can create an action that makes the work account commits count in my personal account (could be either GitHub or GitLab).
Because I don't want my account to be "stopped" and without the count of commits, for the portfolio, I believe this is not good.

Merging multiple github user accounts and transfer commits

I have two GitHub accounts. One from my work and my personal one, and i wanna merge these two.
I already read this doc: Merging multiple user accounts
But i still remain with two doubt:
After i add the same e-mail to my personal account. All my collaboration in repos will be transfered too?
the repos that my work account was a colaborator, my personal account will get the permision too?
They answered my ticket:
Contributions are linked to your email address, so adding your
existing email to your new account will transfer these over.
However collaboration and permissions in other repos is attached to
the account itself, not the email, so you will need to request to be
added as a collaborator again for any repos you currently collaborate
on.
Likewise, if you are a member of an organisation, you'll need to be
added to that organisation again and any teams you were a member of.
Commits are associated to your email: after transferring all the repos etc. and deleting your account, you need to add the previous email address (from the deleted account) to the new account in your account settings. The commit history will now be linked to your new account.

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?
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.
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.

How to merge several Github users?

I am newbie github users and mistakenly created two github user accounts. I'm wondering how can we merge two github users account into one, including their corresponding repositories? any idea?
A quick something search will give you this:
Transfer any repositories from the account you want to delete to the account you want to keep. Issues, pull requests, and wikis are transferred as well. Verify the repositories exist on the account you want to keep.
Update the remote URLs in any local clones of the repositories that were moved.
Delete the account you no longer want to use.