我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
文章版本: Enterprise Server 2.17

Creating a new repository

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

Tip: Owners can restrict repository creation permissions in an organization. For more information, see "Restricting repository creation in your organization."

  1. 在任意页面的右上角,单击 ,然后单击 New repository(新建仓库)

    含有创建新仓库选项的下拉菜单

  2. 使用 Owner(所有者)下拉菜单,选择要拥有仓库的帐户。

    所有者下拉菜单

  3. 键入仓库的名称和说明(可选)。

    创建仓库字段

  4. Choose to make the repository either public or private. Public repositories are visible to everyone using 您的 GitHub Enterprise Server 实例, while private repositories are only accessible to you, and people you share them with. For more information, see "Setting repository visibility."

    Radio buttons to select private or public status

  5. There are a number of optional items you can pre-populate your repository with. If you're importing an existing repository to GitHub Enterprise, 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."
  6. 单击 Create repository(创建仓库)

Further reading

问问别人

找不到要找的内容?

联系我们