Skip to main content
Frecuentemente publicamos actualizaciones de nuestra documentación. Es posible que la traducción de esta página esté en curso. Para conocer la información más actual, visita la documentación en inglés. Si existe un problema con las traducciones en esta página, por favor infórmanos.

Esta versión de GitHub Enterprise se discontinuó el 2022-06-03. No se realizarán lanzamientos de patch, ni siquiera para problemas de seguridad críticos. Para obtener un mejor desempeño, más seguridad y nuevas características, actualiza a la última versión de GitHub Enterprise. Para obtener ayuda con la actualización, contacta al soporte de GitHub Enterprise.

Creating a repository from a template

You can generate a new repository with the same directory structure and files as an existing repository.

About repository templates

Anyone with read permissions to a template repository can create a repository from that template. For more information, see "Creating a template repository."

Tip: You can also create a repository from a template using the CLI de GitHub. For more information, see "gh repo create" in the CLI de GitHub documentation.

You can choose to include the directory structure and files from only the default branch of the template repository or to include all branches. Branches created from a template have unrelated histories, which means you cannot create pull requests or merge between the branches.

Creating a repository from a template is similar to forking a repository, but there are important differences:

  • A new fork includes the entire commit history of the parent repository, while a repository created from a template starts with a single commit.
  • Commits to a fork don't appear in your contributions graph, while commits to a repository created from a template do appear in your contribution graph.
  • A fork can be a temporary way to contribute code to an existing project, while creating a repository from a template starts a new project quickly.

For more information about forks, see "About forks."

Creating a repository from a template

  1. En tu instancia de GitHub Enterprise Server, visita la página principal del repositorio.

  2. Above the file list, click Use this template. Use this template button

  3. Utiliza el menú desplegable de Propietario y selecciona la cuenta que quieres sea propietaria del repositorio. Menú desplegable Propietario

  4. Teclea el nombre de tu repositorio, y una descripción opcional. Crear un campo de repositorio

  5. Elige la visibilidad del repositorio. Para obtener más información, consulta la sección "Acerca de los repositorios". Botones radiales para seleccionar la visibilidad del repositorio

  6. Optionally, to include the directory structure and files from all branches in the template, and not just the default branch, select Include all branches. Include all branches checkbox

  7. Click Create repository from template.