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.

Criar arquivos

Você pode criar arquivos diretamente no GitHub Enterprise em qualquer repositório no qual tenha acesso de gravação.

Ao criar um arquivo no GitHub Enterprise, lembre-se do seguinte:

Warning: Never git add, commit, or push sensitive information to a remote repository. Sensitive information can include, but is not limited to:

  • Passwords
  • SSH keys
  • AWS access keys
  • API keys
  • Credit card numbers
  • PIN numbers

For more information, see "Removing sensitive data from a repository."

  1. On GitHub Enterprise, navigate to the main page of the repository.

  2. No seu repositório, navegue até a pasta em que deseja criar um arquivo.

  3. Above the file list, click Create new file.

    The New file button

  4. No campo de nome do arquivo, digite o nome e a extensão do arquivo. Para criar subdiretórios, digite o separador de diretório /.

    Nome do novo arquivo

  5. Na guia Edit new file (Editar novo arquivo), adicione conteúdo ao arquivo.

    Conteúdo no novo arquivo

  6. Para revisar o novo conteúdo, clique em Preview (Visualizar).

    New file preview button

  7. 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."

    Commit message for your change

  8. Below the commit message fields, decide whether to add your commit to the current branch or to a new 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."

    Commit branch options

  9. Click Propose new file.

    Propose new file button

Leia mais

Pergunte a uma pessoa

Não consegue encontrar o que procura?

Entrar em contato