Search code examples
githubgithub-projects

How to transfer a github Projects from one repository to another


I am curious if you can move a github 'Project' from one repository to another.

Should be more specific. Github has a 'Project' feature that allows you to create a simple kanban board. enter image description here

I would like to move this project from repo-a to repo-b. Looking through the UI I do not see a way to do this.


Solution

  • A single GitHub Project can span multiple repositories, so your best bet is to add the new repository and remove the old one.

    Unfortunately, the Kanbans refer the specific GitHub issues inside a specific repository: so if you remove the source repo, you'll loose also the related issues from the Project.

    In case you want to keep you old issues on the new repository, your best bet is to:

    • transfer the issues from repo-a to repo-b (Select issue -> Transfer Issue -> Choose Repository)
    • if you want, try the "Make a copy", option under the Project's ᐧ ᐧ ᐧ button
    • go to repo-b's issues, select them all, click the _"Projects" dropdown and choose your own Project.
      • you'll see a spinner icon; wait till it's done and you get a green confirmation.
      • now all the selected issues should be present inside you project.
        Although you can't get automatically the cards back to where they were in repo-a.
        You will need to redistribute them manually.