Reuse an existing course
We've made it easy to automatically load GitHub-created courses to your Learning Lab installation. However, you'll sometimes need to reuse a course from one organization to another if, for example, you've created a course on GitHub.com, and then you'd like to modify the course for use in GitHub Enterprise Server. This document covers that scenario.
As a reminder, each course has:
- a course repository, and
- a template repository
You will need read access to both of these repositories in order to reuse them in your own organization.
Reusing a course between two organizations on GitHub.com
We'll assume you've got a source organization that owns the existing courses, and a target organization that you'd like to own your new courses.
- Fork the course repository from the source organization to your target organization.
- Fork the template repository from the source organization to your target organization.
- Install the Learning Lab app on your target organization.
- Visit your organization's new course creation page, replacing
<YOUR-ORG> with the name of your target organization: https://lab.github.com/<YOUR-ORG>/new
- Enter the course repository's name in the text box.
- Click Create course
We'll assume you've got a target organization on GitHub Enterprise Server that you've selected to house your Learning Lab courses. This organization can be used only for Learning Lab, or it can have multiple uses.
- Clone the course repository to your machine.
- Create a repository in your target organization with the same name as the course repository you just cloned.
- Push your local repository to the target organization.
- Clone the template repository to your machine.
- Create a repository in your target organization with the same name as the template repository you just cloned.
- Push your local repository to the target organization.
Note: your template repository may contain multiple branches that the course makes use of. If this is the case, ensure you've pushed every branch in the repository to your target organization.
- Install the Learning Lab app on your target organization.
- Visit your organization's new course creation page, replacing
<YOUR-LEARNING-LAB-URL> with the URL to your Learning Lab instance, and <YOUR-ORG> with the name of your target organization: https://<YOUR-LEARNING-LAB-URL>/<YOUR-ORG>/new
- Enter the course repository's name in the text box.
- Click Create course