Move github private repository to new account

I created a new github account and I want to move the private repo from the old account to my new account, and it is important to keep all the stories. After that, I want to delete the repo in the old account.

eg.

existing github account: old user
existing private repo under an old user account: myrepo
new github account: new user

what should I do?

+7
source share
2 answers

First check out the GitHub submission page :

Transfer between user accounts

  • Open repo page
  • Select "Settings" from the repository action bar enter image description here
  • Click "Submit" enter image description here

Another option, if you are locally cloning the repository, is as follows:

git push --mirror git@github.com :NewUsername/newProject.git 
+2
source

If repo deployment does not work for you (you should add a new user as a co-author, I think), you can clone the repo on your computer and then push it to the new repo into the new user account.

Finally, as I always suggest, if your problem has not yet been resolved, contact GitHub support , they will surely be able to help you.

0
source

All Articles