Quick summary
This tutorial shows how to push changes to the main branch in GitHub directly through the browser by creating a new file, writing a commit message, and confirming the commit without using the command line. It covers every step from navigating to your repository to verifying that your changes appear on the main branch.
Steps
- Navigate to your desired repository from the GitHub dashboard.
- Click Add files to open the file upload options.
- Select Create files to open the new file editor.
- Name your file and add your file content in the editor.
- Click Commit changes to open the commit dialog.
- Enter a descriptive commit message that summarises your changes.
- Optionally, add a more detailed description in the extended description field.
- Confirm that "Commit directly to the main branch" is selected.
- Click Commit changes to push your changes directly to the main branch.
- Return to your repository's main page and verify that your files or changes appear as expected.



