Suppose a repository on Github is no loner being maintained and no one has been given push access.
The three methods that I know,
git clone ...; cd ...; git remote rm origin; git remote add ...; git push;
git clone --bare ...; cd ...; git push --mirror ...;
git clone --mirror ...; cd ...; git push --mirror ...;
https://stackoverflow.com/questions/3959924/whats-the-difference-between-git-clone-mirror-and-git-clone-bare
Two problems with all of these methods...
- Issues are not ported over.
- Pull requests are not ported over.
Program will get all issues via Github api. for each issue will post to new repository. https://developer.github.com/v3/issues/
Clone the repository down. (they are by default read only)
convert them over to local branches... with branch name of the original.
push with all local branches.
https://community.atlassian.com/t5/Bitbucket-questions/Cloning-a-pull-request/qaq-p/56394
If you know a better way to mirror that gets information simular to ownership transfer.