Your work in the course will be completed in this workspace. Instructions for the two most common tasks you'll perform can be found below.
"Push" your work up to GitHub for backup. By creating "commits", which you can think of as versioned checkpoints in your workspace, you are not at risk of losing your work. It's easy to revert back to an old version or to restore your entire workspace on a different computer.
- Select the View menu and then SCM (Source Control Management)
- Alternatively: Select the Activity Bar icon that's three circles with lines for Source Control
- Notice the files listed under Changes. These are files you've made modifications to since your last backup.
- Move your mouse's cursor over the word changes and notice the + symbol that appears. Click that plus symbol to add all changes to the next backup. You will now see these listed under "Staged Changes".
- If you do not want to backup all changed files, you can select them individually. For this course you're encouraged to back everything up.
- In the Message box, give a brief description of what you've changed and are backing up. This will help you find a specific backup (called a "commit") if needed.
- Open the View menu and select Command Palette, the shortcut for this menu is:
- Windows:
Control+Shift+P
- Mac:
Command+Shift+P
- Windows:
- Begin typing in:
Git: Push to...
and pressEnter
once it is the first option. - Select the
backup
remote that is your personal workspace on GitHub. If you do not seebackup
listed, see the instructions below on Setup Backup Course Material Repository.- You may see a spinning "refresh" icon in your status bar at the bottom of VSCode. Unless an error backing up occurs, you will not see any confirmation.
- If you want to see your backed up work on Github, navigate to the following URL but replace
USERNAME
with your GitHub username: https://github.com/comp110-23f/comp110-workspace-23f-USERNAME
"Pulling" course materials down from Upstream. As new lesson material or starter code for exercises and projects is added to our central course repository, these are the steps you'll take to download them into your own workspace repository.
- Open the View menu and select Command Palette
- The shortcut for this menu is:
- Windows:
Control+Shift+P
- Mac:
Command+Shift+P
- Begin typing in
Git: Pull From...
and pressEnter
once it is the first option. - Begin typing in
origin
and pressEnter
once it is the first option. - Press enter with
origin/main
as the first option. - This downloads the latest course materials! It will succeed silently, so if nothing appears to happen it worked (and any new files will be available in the file explorer). If there was an error, you would see an error message pop up.