Adding a File

Add a file to your repository in the GitHub web UI.

Prerequisites

You've opened the repository in GitHub to which you want to add your file. You've selected the corresponding branch from the branch dropdown menu under Switch branches/tags.

Steps

  1. In the repository, select Add file > Create new file.
  2. Enter a name and extension for the file (for example, Test.md).
  3. In the edit view of the file, enter your text.
  4. Click Commit changes....
  5. In the Commit changes window that opens, add a commit message and optionally an extended description of the changes you made to the file.
  6. Click Commit changes.

Result

Your file is committed to the child branch.

Next Step

Opening a Pull Request