- Go to your project GitHub page. For example, this project page is https://github.com/nsidc/git-training
- Navigate to the file you want to edit. Click on folders and files until you're viewing a preview of the file you want to edit
For simple edits, use edit with GitHub.com
- Click on the
pen
icon, or selectEdit this file
from thev
dropdown next to the pen icon
- Edit the file
- When done editing, it is important to leave a
commit message
documenting what changes you made- Leave a short one-line commit message
- If more details are needed or may be useful, leave an extended discription
- If the change is small, or you are working alone on your own project, you can commit directly to the branch you are on. This is probably the
main
branch - If the change is large, there are other people working on the project, or you want to discuss the change with someone before finalizing it, select
Create a new branch for this commit and start a pull request
- Select the
Commit changes
button
If you commit to a new branch and create a pull request, you will eventually want to merge the pull request back to your main branch.