Creating an internal repository
You can create an internal repository to collaborate using open source methodologies in your enterprise account without sharing proprietary information publicly.
Internal repositories are available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
In this article
About internal repositories
Internal repositories are the default setting for all new repositories created in an organization owned by an enterprise account.
You can use internal repositories to practice "innersource" within your enterprise account. Members of your enterprise account can collaborate using open source methodologies without sharing proprietary information publicly. For more information on innersource, see GitHub's whitepaper "An introduction to innersource."
All enterprise members have read permissions to the internal repository and can create issues in the repository. Internal repositories are not visible to people outside of the enterprise account, including outside collaborators on organization repositories. For more information, see "Roles for an enterprise account", "Repository permission levels for an organization", and "About forks."
If a user is removed from an enterprise account, their forks are removed automatically.
Creating a new internal repository
Anyone with permissions to create repositories in an organization on GitHub Enterprise Cloud can create an internal repository. Owners can restrict repository creation permissions in an organization. For more information, see "Restricting repository creation in your organization."
In the upper-right corner of any page, use the drop-down menu, and select New repository.
Use the "Owner" drop-down, and select the enterprise organization you wish to create the repository on.
Type a name for your repository and an optional description.
To make the repository visible only to members of your enterprise account, select Internal.
There are a number of optional items you can pre-populate your repository with. If you're importing an existing repository to GitHub, don't choose any of these options, as you may introduce a merge conflict. You can add or create new files using the user interface or choose to add new files using the command line later. For more information, see "Importing a Git repository using the command line," "Adding a file to a repository using the command line," and "Addressing merge conflicts."
- You can create a README, which is a document describing your project. For more information, see "About READMEs."
- You can create a .gitignore file, which is a set of ignore rules. For more information, see "Ignoring files."
- You can choose to add a software license for your project. For more information, see "Licensing a repository."
Optionally, if your organization uses any GitHub Apps from GitHub Marketplace, select any apps you'd like to use in the repository.
When you're finished, click Create repository.
At the bottom of the resulting Quick Setup page, under "Import code from an old repository", you can choose to import a project to your new repository. To do so, click Import code.