Publicamos atualizações frequentes em nossa documentação, e a tradução desta página ainda pode estar em andamento. Para obter as informações mais recentes, acesse a documentação em inglês. Se houver problemas com a tradução desta página, entre em contato conosco.

Esta versão do GitHub Enterprise foi descontinuada em 2021-03-02. Nenhum lançamento de patch será feito, mesmo para questões críticas de segurança. Para obter melhor desempenho, melhorar a segurança e novos recursos, upgrade to the latest version of GitHub Enterprise. Para ajuda com a atualização, contact GitHub Enterprise support.

Setting repository visibility

You can choose who can view your repository.

Neste artigo

About repository visibility changes

Organization owners can restrict the ability to change repository visibility to organization owners only. For more information, see "Restricting repository visibility changes in your organization."

We recommend reviewing the following caveats before you change the visibility of a repository.

Making a repository private

  • GitHub Enterprise Server will detach public forks of the public repository and put them into a new network. Public forks are not made private.
  • If you change a repository's visibility from internal to private, GitHub will remove forks that belong to any user without access to the newly private repository. The visibility of any forks will also change to private. For more information, see "What happens to forks when a repository is deleted or changes visibility?"
  • Any published GitHub Pages site will be automatically unpublished.
  • Anonymous Git read access is no longer available. For more information, see "Enabling anonymous Git read access for a repository."

Making a repository internal

Note: Os repositórios internos estão disponíveis com GitHub Enterprise Cloud e GitHub Enterprise Server 2.20+. Para obter mais informações, consulte os "Produtos do GitHub".

Making a repository public

Making a repository private

  1. No GitHub Enterprise Server, navegue até a página principal do repositório.
  2. No nome do seu repositório, clique em Configurações.
    Botão de configurações do repositório
  3. Under "Danger Zone", next to "Make this repository private", click Make private.
    Make private button
  4. Read the warnings about making a repository private.
    Warnings popup
  5. Type the name of the repository that you want to make private, for example accountname/reponame.
  6. Click I understand, make this repository private.

Making a repository public

  1. No GitHub Enterprise Server, navegue até a página principal do repositório.
  2. No nome do seu repositório, clique em Configurações.
    Botão de configurações do repositório
  3. Under "Danger Zone", next to "Make this repository public", click Make public.
    Make public button
  4. Read the warnings about making a repository public.
    Pop-up with information about making a private repository public
  5. Type the name of the repository that you want to make public, for example accountname/reponame.
  6. Click I understand, make this repository public.

Making a repository internal

  1. No GitHub Enterprise Server, navegue até a página principal do repositório.
  2. No nome do seu repositório, clique em Configurações.
    Botão de configurações do repositório
  3. Under "Danger Zone", next to "Make this repository internal", click Make internal.
    Make internal button
  4. Read the warnings about making a repository internal.
    Warnings popup
  5. Type the name of the repository that you want to make internal, for example accountname/reponame.
  6. Click I understand, make this repository internal.

Further reading