Skip to main content

Creating and managing repositories

You can create a repository on GitHub Enterprise Cloud to store and collaborate on your project's files, then manage the repository's name and location.

About repositories

A repository contains all of your code, your files, and each file's revision history. You can discuss and manage your work within the repository.

Best practices for repositories

Learn how to use repositories most effectively.

Quickstart for repositories

Learn how to create a new repository and commit your first change in 5 minutes.

Repository limits

Learn about limitations for repositories.

Creating a new repository

You can create a new repository on your personal account or any organization where you have sufficient permissions.

Creating a repository from a template

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

Creating a template repository

You can make an existing repository a template, so you and others can generate new repositories with the same directory structure, branches, and files.

Creating an issues-only repository

GitHub Enterprise Cloud does not provide issues-only access permissions, but you can accomplish this using a second repository which contains only the issues.

Duplicating a repository

To maintain a mirror of a repository without forking it, you can run a special clone command, then mirror-push to the new repository.

Cloning a repository

When you create a repository on, it exists as a remote repository. You can clone your repository to create a local copy on your computer and sync between the two locations.

Troubleshooting cloning errors

If you're having trouble cloning a repository, check these common errors.

Renaming a repository

You can rename a repository if you're either an organization owner or have admin permissions for the repository.

Transferring a repository

You can transfer repositories to other users or organization accounts.

Deleting a repository

You can delete any repository or fork if you're either an organization owner or have admin permissions for the repository or fork. Deleting a forked repository does not delete the upstream repository.

Restoring a deleted repository

You can restore some deleted repositories to recover their contents.