How to Update GitHub Repository
Learn how to update your GitHub repository in a few simple steps.
Tyler Harz
|
5 steps
|
27 seconds
1
Open your "Terminal" to get started.
2
Navigate to the repository you want to update.
3
Type the following command to add new files to the staging area before making your commit: git add . [[Enter]]
4
Next, enter the following commands while substituting the appropriate commit message: git commit -m "commit message here" [[Enter]] git push origin main [[Enter]]
5
You may have to enter your password. Afterward, your git repository is updated!