1.2. Editing a file in an existing project
1.2.1. Find the file
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
1.2.2. Edit the file
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 madeLeave 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
branchIf 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.