I created a new github account, and I want to move a private repo from an old account to my new account, and it's important to maintain all histories. After that I want to delete the repo in the old account.
e.g.
existing github account: old-user
existing private repo under the account old-user: myrepo
new github account: new-user
what should I do?
If you're using Git, you'll first need to clone the repo you want to copy locally. Then, create a new empty repository in the account you want to add the repo. Finally, add your remote and push the files from the local repo to the new Beanstalk account using the git push command.
Privacy and data sharingPrivate repository data is scanned by machine and never read by GitHub staff. Human eyes will never see the contents of your private repositories, except as described in our Terms of Service.
In the left sidebar, click GitHub Apps. Select the GitHub App whose ownership you want to transfer. In the left sidebar, click Advanced. Click Transfer ownership.
First, check the GitHub transfer page:
Transferring between user accounts
The other option, if you have your repo cloned locally, is to:
git push --mirror [email protected]:NewUsername/newProject.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With