# How to Commit to Github

> To commit to GitHub, open the repository in your browser, select the file, and click the pencil icon to edit. Make your updates, scroll to the commit section, add a message and description, choose your branch, and click 'Commit changes' to save.

Canonical: https://livedemo.ai/tutorials/how-to-commit-to-github/
Apps: GitHub
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a330dab56e05a00fd6f4b/preview?step=1

## Steps

1. Open the repository in your browser.
2. Navigate to the file you want to change and click on it.
3. To edit, click the pencil icon.
4. Make your changes, update the file as needed and click 'Commit changes'.
5. Scroll down to the 'Commit changes' section. Add your 'Commit message' and 'Extended description'.
6. Choose whether to commit directly to the main branch or create a new branch for your changes.
7. Click 'Commit changes' to save.
8. By following these steps, your commit will be added to the repository on GitHub.
