We’ve now put some work into our code so we should save our work. We’ll commit our work back to the repository we forked at the beginning of the workshop.
Open your terminal window or open the VSCode integrated terminal. Make sure you’re in the jumpstart-webdev/ directory. If not, run:
cd ~/Desktop/jumpstart-2022/jumpstart-webdev
You’ll first add your modified files, and commit the work locally.
git add .
git commit -m "added hello and book routes"
In the git add . command above, the . means all the files in the current directory will be added. There might be times where we only want to add particular files to our commit, and in that case we can replace the . with one or more filenames (separated by spaces). You can see which files have been added to a commit by using git status
Now push your code to GitHub:
git push -u origin main
Let us know when you’ve pushed your work to GitHub.