Using Your Individual Git Repository

How to clone your individual CSSE220 Repo

All the remaining CSSE220 individual assignments, including exams, that require electronic submission, will be posted to your individual git repository. To access these assignments, you’ll want to use Eclipse to clone (that is, copy) the repo onto your local system.

Login to ada

Login to https://ada.csse.rose-hulman.edu using your Rose-Hulman network username and password. Click on Projects > Your Projects to see a list of your projects. Click on the project with a name that looks something like this: csse220-XXXXXX-student-Group / csse220-XXXXXX-student-YYYY where XXXXXX represents the term code (e.g., 201920) and YYYY represents your Rose-Hulman username.

Get your repo URL

To get the URL for your repository, expand the SSH dropdown list to see the HTTPS option. Select that option. You will see a URL that begins with https://ada.csse; that’s your repo URL. Click on the icon immediately to the right of it to copy your repo URL to the clipboard. Now follow the instructions below to clone your repo in Eclipse.

Cloning your repo in Eclipse

  1. Start Eclipse

  2. Go to “File > Import” in the menu

  3. Select “Git > Projects From Git” from the list of options and click “Next”

  4. Select “Clone URI”

  5. Paste your repo URL (copied to the clipboard, above) in the URI field and click “Next” (Pasting may happen automatically for you if it is already loaded on your clipboard)

  6. Make sure master is checked and click “Next”

  7. You can choose any directory you like as your destination. You’ll be able to use this directory to access a local copy of all the individual assignments, so pick a directory you’ll remember.

    Choose one and click “Next”

  8. It’ll take about a minute, or less, for the repo to download.

    Make sure you select the radio button “Import existing Eclipse projects” and click “Next”

  9. If you see one or more new directories in the left pane it worked!

How to import another project from the cloned repo

Important We will be posting assignments and grader feedback throughout the term. To ensure you have the latest assignments and feedback, right click on your newly cloned repo and select “Team > Pull”. That will pull to the local copy of your repo any updates we’ve pushed to your repo. After doing a Pull, follow the steps below.

  1. Start Eclipse

  2. Go to “File > Import” in the menu

  3. Select “Git > Projects From Git” from the list of options and click “Next”

  4. Select “Existing Local Repository”

  5. Select your already cloned repo (that has your username in it!) and click “Next”

  6. Make sure import existing Eclipse projects is checked

  7. Look for the projects you wish to import, make sure they are checked, then click “Next”

  8. When you confirm that the projects you wish to import are checked, click “Finish”

  9. If you see one or more new directories in the left pane it worked!

How to commit and push your solutions

  1. Start Eclipse

  2. In the left pane, expand the project that you wish to submit. You can choose to submit individual files OR the entire project. It does no harm in submitting the entire project and doing so can even help avoid some errors. You can submit as many times as you like before the assignment due date.
    As a matter of fact, we advise you to do so.

  3. Highlight what you would like to submit then Select “Team > Commit”. A Git Staging view will appear. You might need to drag your unstaged files from the Unstaged Changes section to the staged Changes section.

  4. Type in a “Commit Message” (e.g., finished part 2 of HW4 ) then click the “Commit and Push” button.

  5. Verify your submission by login in to ada, as described above, selecting your repo (on ada it’s called your project), and clicking on the “Commits” link. You should be able to see your last commit.