Skip to content

Instantly share code, notes, and snippets.

@Apexal
Last active February 21, 2020 04:21
Show Gist options
  • Save Apexal/c45672a84517ffde3206837151eb7e94 to your computer and use it in GitHub Desktop.
Save Apexal/c45672a84517ffde3206837151eb7e94 to your computer and use it in GitHub Desktop.
Some versions of Eclipse seem to not allow creating a new project by cloning a Git repo. These are the manual steps to get around this.

Based on Settng Up Eclipse and Git

Problem

The homework project is a Git repo hosted on Submitty's servers. You must clone it to your computer locally so you have the files to work on and push back to Submitty. The steps in the above PDF throw an error about Git and fail to clone the repo. This prevents creating the Eclipse project in the first place.

Solution

Clone the Git repo from the command line to a specified place on your computer. Then simply create a new Eclipse project and choose the folder you cloned the Git repo to.

Steps

  • On Windows, open Git bash or the WSL bash from the Start menu.
  • Navigate to the folder you want to put the homework folder in with cd /path/to/folder/here, e.g.
    • On Git bash: cd /c/Users/matraf/Desktop/psoft/
    • On WSL: cd /mnt/c/Users/matraf/Desktop/psoft/
  • Clone the Git repo (folder) here with git clone https://submitty.cs.rpi.edu/git/s20/csci2600/HW_Folder/RCSID csci2600-HW_NAME where HW_Folder is hw00, hw01, etc. and HW_NAME is hw0, hw1
  • Create a new project in Eclipse by finishing the official Setting Up Eclipse & Git PDF steps 10-14, making sure to choose the folder that was just made by cloning the repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment