Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 2.13 KB

File metadata and controls

36 lines (32 loc) · 2.13 KB
title Creating new files
intro You can create new files directly on {% data variables.product.github %} in any repository you have write access to.
redirect_from
/articles/creating-new-files
/github/managing-files-in-a-repository/creating-new-files
/github/managing-files-in-a-repository/managing-files-on-github/creating-new-files
versions
fpt ghes ghec
*
*
*
category
Work with files

When creating a file on {% data variables.product.github %}, consider the following:

{% data reusables.repositories.sensitive-info-warning %}

{% data reusables.repositories.navigate-to-repo %}

  1. In your repository, browse to the folder where you want to create a file. {% data reusables.files.add-file %}
  2. In the file name field, type the name and extension for the file. To create subdirectories, type the / directory separator.
  3. In the file contents text box, type content for the file.
  4. To review the new content, above the file contents, click Preview. Screenshot of a file in edit mode. Above the text box for editing file contents, a tab, labeled "Preview", outlined in dark orange.

{% data reusables.files.write_commit_message %} {% data reusables.files.choose-commit-email %} {% data reusables.files.choose_commit_branch %} {% data reusables.files.propose_new_file %}