All examples
GitHub logo
GitHub SOPMade with Glyde

GitHub File Creation and Commit Workflow

Purpose

This SOP describes how to create a new file in a GitHub repository and commit it directly to the main branch using GitHub's web interface.

Scope

This procedure is intended for users with write access to a GitHub repository. Follow this SOP when you need to add new files to a repository without using the command line or a local development environment.

Prerequisites

  • Active GitHub account

  • Write access to the target repository

  • Web browser with internet access

Procedure

  1. Navigate to the GLYDE repository

    Open the GitHub repository

    Navigate to github.com/yuxiyu224/GLYDE and ensure you are signed in to your GitHub account.

    Navigate to the GLYDE repository
  2. Open the Add file menu

    Click the Add file button

    Click the Add file button located in the repository toolbar, next to the green Code button.

    Open the Add file menu
  3. Select Create new file option

    Choose Create new file from the dropdown

    From the dropdown menu that appears, select Create new file. Alternatively, you can select Upload files if you want to upload an existing file from your computer instead of creating one in the browser.

    Select Create new file option
  4. Enter the filename

    Type the filename in the name field

    Click on the filename input field (located at the top of the editor, showing placeholder text) and enter GLYDEFILE as the filename.

    Enter the filename
  5. Add file content

    Enter content in the editor

    Click in the text editor area below the filename and enter the desired file content. For this example, type GLYDEFILE as the content.

    Add file content
  6. Initiate the commit process

    Click Commit changes button

    Click the green Commit changes... button located in the top-right corner of the editor.

    Initiate the commit process
  7. Confirm and commit the file

    Click Commit changes in the modal

    In the commit dialog that appears, review the commit message. GitHub will automatically suggest a commit message (e.g., "Create GLYDEFILE"). You can optionally add an extended description in the Extended description field.

    Confirm and commit the file

Verification

After completing the procedure, verify the file was created successfully:

  1. You will be redirected back to the repository main page

  2. The newly created file (GLYDEFILE) should appear in the file list

  3. The commit count should increase, and the latest commit message should reference the file creation

  4. Click on the filename to view its contents and confirm they match what you entered

Troubleshooting

Cannot see the Add file button

If you cannot see the Add file button, you may not have write access to this repository. Contact the repository owner to request appropriate permissions or fork the repository to create the file in your own copy.

Commit changes button is disabled

If the Commit changes button is grayed out or disabled, ensure you have entered both a filename and some content in the file. The button remains inactive until both fields are populated.

File already exists error

If you receive an error that the file already exists, choose a different filename or navigate to the existing file and edit it instead of creating a new one.

Conclusion

You have successfully created a new file named GLYDEFILE in the GLYDE repository and committed it directly to the main branch. The file is now available for viewing and editing by all users with repository access.

Made with Glyde — in minutes, not hours.

Record your workflow once. Glyde writes the SOP, captures the screenshots, and walks your team through it live.

Get Started Free
More GitHub SOPs