You can create new files directly on GitHub in any of your repositories.

Tip: If you try to create a new file in a repository that you don’t have access to, we will fork the project to your user account and help you send a pull request to the original repository after you commit your change.

  1. Browse to a folder in your repository where you want to create a file.

  2. At the top menu bar, there's a New File icon next to the file path. Click this icon to open a new file editor. The create new file button on GitHub

  3. Using the editor, enter the name of the file you want to create, and the content you want it have. The new file editor

    • File names created via the web interface can only contain alphanumeric characters and hyphens. If you need to use other characters, you will need to create/commit the files locally and then push them to the repository.
    • You can create subdirectories by typing the / directory separator.
  4. Enter a commit message describing the new file you’re adding, and press the Commit button to commit your change to the repository. Commit message for your new file