102-Reading Notes
DeltaV gave us a really helpful video tutorial on how to make changes to your repositories on GitHub by copying or ‘cloning’ a repository onto your computer, and then using the Terminal and Visual Studio (VS) Code to make the wanted changes. The following are summarized steps that may be helpful for those new in the field.
To edit your GitHub repository on your computer via Terminal and VS Code
cd Desktop
.git clone
and then paste your copied .git link. This will make a copy of the repository in the location you specified.ls
to see the file to make sure the project name is correct.cd
followed by the name of your project of your new directory (e.g. cd reading-notes) and press enter to navigate into this directory.code .
to open VS Code referencing this specific project with its files from GitHub.s
.When changes are complete and saved on VS Code, go back to your Terminal window and complete the following steps to ensure your changes are “pushed” to your repository GitHub successfully.
git status
, which will show the changes.git add .
, which will create a “stage” to be used by git to add all changes.git commit -m 'brief commit message'
. The “brief commit message” should be a message why you did what you did to add this to the repository version record. e.g. git commit -m 'fix errors on all files'
git push
to add or “push” the changes to your GitHub repository.Once these steps are complete, check your specific repository to see if the changes successfully integrated.