1

I just mirrored a github repo.

Like this:

git clone --bare git@github.oldproject/oldproject.git

cd oldproject.git

git push --mirror git@github.com:newproject/newproject.git

This works great but closed issues and pull requests are not transfered?

Is this possible?

Jamie
  • 10,302
  • 32
  • 103
  • 186

2 Answers2

2

Pull requests and issues are not part of git. They are features of the GitHub or other tools.

If you wish to checkout pull request locally follow those instructions:
https://help.github.com/articles/checking-out-pull-requests-locally/

CodeWizard
  • 128,036
  • 21
  • 144
  • 167
  • 1
    Hmm, i have a lot of closed pull requests that I would like to transfer. So that's not possible I guess? – Jamie Feb 18 '19 at 11:42
  • Why do you need closed pull requests? they should be merged into your branches. In Github you simply see the content of the pull request, the actual changes are i your branches – CodeWizard Feb 18 '19 at 11:50
0

You could have a look at this tool: https://github.com/IQAndreas/github-issues-import

This Python script allows you to import issues and pull requests from one repository to another; works even for private repositories, and if the two repositories are not related to each other in any way.

Note: This does only work with password logins (not ssh).

holzkohlengrill
  • 1,044
  • 19
  • 29