How to edit a file in GitHub
Learn how to edit a file directly on GitHub.com without Git, commit your changes, and choose whether to update the branch or open a pull request.
Steps
- Confirm commit readiness in README commit modal — Pause on the commit modal where the commit message fields and the commit and cancel buttons are clearly presented before proceeding.
- Review commit message and options in modal — Confirm the commit message and extended description in the modal while the Commit changes and cancel options remain ready for finalizing the README update.
- Enter commit message in commit dialog — Type a commit message and extended description into the fields in the commit dialog while the Commit changes button and branching options remain available.
- Click Commit changes above README editor — Use the Commit changes action in the editor so the GitHub commit dialog opens over the repository page with message and branch options.
- Review commit and cancel options in editor — Check the top-right of the README editor where the primary actions Cancel changes and Commit changes indicate edits are ready to be finalized.
- Open README.md from repository file list — Select README.md in the file list so the GitHub file view opens and displays the rendered README content for Task-tracker.
- Locate README.md in repository file list — Scroll within the Code tab if needed until the repository file list appears and confirm README.md is listed among the files.
- Review Task-tracker README on repository page — View the Task-tracker repository with the Code tab selected so the README preview shows the project title and description.