Github Metadata - github

I deleted my Github account for some personal reasons, however beforehand I downloaded the metadata for the account. At the current moment I cannot find how I can use that metadata to create a new account. Is this even possible? And if so, how?

Related

Merge two github accounts

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.

Is there a way to reassign all commits and activity from one GitHub/git user to another?

I need to convert a personal GitHub account to an organization. Rather than creating a new account and transferring the repos as recommended in the Git docs, I'd prefer to convert the existing account, which then changes all activity associated with the personal account to the ghost account.
Is there a way to direct what would be assigned to ghost, to an existing github personal account -before- converting to an organization? In other words: reassign all personal activity associated with this account to another existing personal account?

Github Enterprise - give read permissions only for a specific file in a repo

I am using Github Enterprise and would like to give other teams access to my repository.
However I don't want those teams to see the repository content, I want them to be able to see ONLY a specific file or a subdirectory (and its content).
Is that possible ?
You'll find documentation on access permissions here. The access permission model is different for repositories owned by user accounts versus those owned by organization accounts. However, in neither of those models is there a provision for providing read access to only a part of a repository. Read permission grants read access to the entire repository.
There are probably a number of creative ways to achieve the effect you're after. One would be to set up an automated process that clones your first repository, copies the files or subdirectory of interest to a second local repository, and then pushes any changes in that second repository back to GitHub Enterprise. You'd provide your other teams read access to that second repository, but not the first.

Before creating a repository on Bitbucket

I have to think of a way to create an approval process on Bitbucket for repositories.
Before creating a repository, co-worker submits a ticket to get approval from manager to be able to get the "go-ahead create repository" or denied. Is this possible to do?
My manager notified it could be similar to submitting a ticket on Sharepoint.
I have not found any ways by trail and error or from using resources, so I am reaching out to see if anyone else had to do something similar.
Are you using Bitbucket Cloud or Bitbucket Server?
In either case, I don't believe there's a way to provide conditional, temporary permission to create a single repository of a specific name or team/project.
What I would do in your situation is to set up some kind of bot account (whether using a dedicated account, or a selected individual's account in combination with an app password/personal token) that could be triggered by your approval process and would create a specified repo and grant permissions to it to a specified user. Depending on the tools you're using it's a pretty open ended solution space, but the API calls for Bitbucket Cloud and/or Server should be reasonably straight forward to achieve this, so it's just matter of figuring out how you would trigger and run such an automation.

AppVeyor account for GitHub organization

I'm part of a GitHub organization developing a FOSS project. I'd like to run CI tests on Windows using AppVeyor. Currently I see my own fork of the project, and some other forks from people who have named me collaborator in GitHub. I don't see the upstream of the project, though. Apparently me being an administrator of the GitHub organization isn't enough to offer access to it in AppVeyor. But probably setting this up under my account would be the wrong approach anyway. Probably this should be under the name of the organization.
Towards that end, I'd like to have an AppVeyor account for this organization, with suitable permissions for its members. Reading http://www.appveyor.com/docs/team-setup it sounds as if AppVeyor could distinguish between users (with unique email and password) and accounts (to which projects belong), and a single user apparently can belong to multiple accounts while one account can have multiple users with different roles. In that sense, I'd like to create a new account without creating a user for it. Instead I as an existing user, identified by GitHub login, would like to become the first administrator of this new account, and ready to change settings and add more users. How do I do this?
You can't create a new account without a user. Just use some your email/password to create an account, then add existing user as collaborator.