You can create new files directly on GitHub in any of your repositories.
Browse to the folder in which you want to create a file, and you will see a New File icon next to the breadcrumb. 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.
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.