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.
Browse to a folder in your repository where you want to create a file.
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.
Using the editor, enter the name of the file you want to create, and the content you want it have.
- 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
Enter a commit message describing the new file you’re adding, and press the Commit button to commit your change to the repository.