Olá! No momento, esta página ainda está sendo desenvolvida ou traduzida. Para obter as informações mais recentes, acesse a documentação em inglês.
Versão do artigo: Enterprise Server 2.15

Esta versão do GitHub Enterprise será descontinuada em Esta versão do GitHub Enterprise foi descontinuada em 2019-10-16. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Bloquear pushes forçados em um repositório

Você pode bloquear pushes forçados (git push --force) em todos os branches (ou somente no branch padrão) de um repositório.

Note: Each repository automatically inherits default settings from the organization or user that owns it. You cannot override the default setting if the repository's owner has enforced the setting on all of their repositories.

  1. Sign in to sua instância do GitHub Enterprise Server at http(s)://HOSTNAME/login.

  2. In the upper-right corner of any page, click .

    Ícone de foguete para acessar as configurações de administrador do site

  3. In the search field, type the name of the repository and click Search.

    Site admin settings search field

  4. In the search results, click the name of the repository.

    Site admin settings search options

  5. In the upper-right corner of the page, click Admin.

    Admin Tools

  6. In the left sidebar, click Admin.

    Admin Tools

  7. Selecione Block (Bloquear) ou Block to the default branch (Bloquear no branch padrão) em Push and Pull (Operações de push e pull).

    Bloquear pushes forçados

As alterações entram em vigor de imediato. Se mudar de ideia depois, você poderá permitir os pushes forçados novamente.

Leia mais

Pergunte a uma pessoa

Não consegue encontrar o que procura?

Entrar em contato