Skip to content

summer-210/summer210-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COMP210 Workspace - Summer Session X 2022

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.

Backup Your Work

"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.

  1. Select the Git menu along the top of your screen and then choose "Commit".
  2. Notice the files listed under Changes. These are files you've made modifications to since your last backup.
  3. Ensure all the files that you'd like to backup are selected. Your cursor should be inside of a message box where you will write a nice description of the modifications you've made to your code, like "Finished EX01!", and then hit the "Commit" button.
    • 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.
    • IntelliJ might tell you there are some warnings or errors here, and you should just commit anyway!
  4. If you open the Git at the bottom of your screen, you should see this commit added to your chain of git commits. However, it has just been added to your local main branch, and needs to be pushed to your remote backup.
  5. Select the Git menu along the top of your screen again and then choose "Push".
  6. A pop-up should appear that displays: "main -> backup : main", which means your latest local commit on the local main branch is going to be pushed to the main branch on the remote backup. If you see "main -> origin : main", just click where it says origin and select backup. Hit the "Push" button.
  7. 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/summer-210/comp210-workspace-USERNAME
    • You can also verify it was pushed successfully by opening the Git view along the bottom of your screen and verifying the latest commit appears on the local and remote branches. (The text next to the tag icons should say main & origin, next to the latest commit message)

Download New Course Material

"Pulling" course materials down from Upstream. As new lesson material or starter code for exercises is added to our central course repository, these are the steps you'll take to download them into your own workspace repository.

  1. Open the Git menu from along the top and select Pull
    • This should open a pop-up that is auto-populated with the correct options. The correct command is git pull origin main. We are pulling code from the course source repo into our local repo.
  2. 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.

Setup Backup Course Material Repository

When you are first setting up your personal workspace repository, you will need to follow these instructions to connect the repository on your computer with your personal "backup" course repository on GitHub. As we add new material through the course, you will then be able to easily back it up to your backup repo. You only need to do this once.

  1. In a web browser, navigate to https://classroom.github.com/a/WKmhsDqn
  2. Join the Classroom by selecting your ONYEN (Clicking "Skip to the next step" is also OK)
  3. Click "Accept this Assignment"
  4. When the workspace is getting set up you may need to refresh until it tells you you're ready to go!
  5. Click the link to your personal backup repository that looks something like this https://github.com/summer-210/comp210-workspace-kakiryan (except instead of kakiryan you will see your GitHub username).
  6. Toward the top of the page there is a green "Code button", click this, and you will see two buttons: HTTPS and SSH. Click HTTPS and copy the text of the URL in the box to the right of the buttons (or click the clipboard icon)
  7. With your workspace open in IntelliJ, select the Git menu along the top of the screen and select manage remotes. Hit the plus icon to begin adding a remote. Name the remote "backup" and paste the URL of the repository in the URL box. Hit ok. You should now see two remotes, origin and backup.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published