From the course: GitHub Quick Tips

Turn a repository into a template - GitHub Tutorial

From the course: GitHub Quick Tips

Turn a repository into a template

- [Ray] Developers often start new projects by basing their work on a previous project. If you do that often you can quickly turn a regular repository into a template repository. So go to a project you want to turn into a template. Click on the settings tab. And turn on template repository. Now go back to the main project page. You should see a green use template button. Click on the button to create a new repo based on this template. Now give this a name. Then click on create repository from template. This'll create a completely new repository based on the original. Notice that there is a new identifier at the top left hand side showing that this project was generated from the original repository. There's also a cool shortcut you can use to make a link that automatically generates a repo from this template. Let's go back to the repository. And in our URL, I'm going to had slash generate and then hit return. This'll take you to the same form where you can create a repository from this template. Now you can share that link to allow other users to automatically generate a repository from your template.

Contents