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
- In the repository, select Add file > Create new file.
- Enter a name and extension for the file (for example,
Test.md). - In the edit view of the file, enter your text.
- Click Commit changes....
- In the Commit changes window that opens, add a commit message and optionally an extended description of the changes you made to the file.
- Click Commit changes.
Result
Your file is committed to the child branch.