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 será descontinuada em Esta versão do GitHub Enterprise foi descontinuada em 2020-05-23. 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.

Versão do artigo: Enterprise Server 2.17

Editar arquivos no repositório

Com o editor de arquivos, você pode editar arquivos diretamente no GitHub Enterprise em qualquer dos seus repositórios.

Dica: If a repository has any protected branches, you can't edit or upload files in the protected branch using GitHub. For more information, see “About protected branches."

You can use GitHub Desktop to move your changes to a new branch and commit them. For more information, see "Committing and reviewing changes to your project."

Observação: o editor de arquivos do GitHub Enterprise usa o CodeMirror.

  1. No repositório, navegue até o arquivo que deseja editar.

  2. No canto superior direito da exibição do arquivo, clique em para abrir o editor de arquivos.

    Botão Edit file (Editar arquivo)

  3. Na guia Edit file (Editar arquivo), faça as alterações necessárias no arquivo.

    Novo conteúdo no arquivo

  4. Above the new content, click Preview changes.

    File preview button

  5. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file. You can attribute the commit to more than one author in the commit message. For more information, see "Creating a commit with multiple co-authors."

    Mensagem do commit para sua alteração

  6. Abaixo dos campos de mensagem do commit, opte por adicionar o commit ao branch atual ou a um novo branch. If your current branch is master, you should choose to create a new branch for your commit and then create a pull request. For more information, see "Creating a new pull request."

    Opções para fazer commit no branch

  7. Clique em Propose file change (Propor alteração no arquivo).

    Propose file change button

Further reading

Pergunte a uma pessoa

Não consegue encontrar o que procura?

Entrar em contato