|
|
Assignments files for lecture "Algorithms and Datastructure" 2014
|
|
|
================================================
|
|
|
|
|
|
You can use this repository as "upstream" to your workspace to simplify the setup for each assignment.
|
|
|
|
|
|
* Start Eclipse and open the Git perspective: Window -> Open Perspective -> Other... -> Git Repository Exploring
|
|
|
* Then click on he icon that says "Clone a Git Repository and add the clone to this view"
|
|
|
* set URI to "git@forge.tic.eia-fr.ch:sup-algorithms/tp-algo1-2014.git"
|
|
|
* Accept the default and click on "Next >"
|
|
|
* The system might ask for the passphrase.
|
|
|
* The "master" branch should be selected. Click on "Next >"
|
|
|
* Set the field Directory where you want to save the repository.
|
|
|
* The default remote name is "origin". change it to "upstream" and clinc on "Finish"
|
|
|
|
|
|
* Now you can open the Java perspective
|
|
|
|
|
|
File -> New -> Java Project
|
|
|
Uncheck "use default location", click on Browse and choose the directory (.../git/tp-algo1-2014/s01) of your local git repository
|
|
|
click on "Finish"
|
|
|
|
|
|
|
|
|
right-click on "Remotes" and choose "Create Remote..."
|
|
|
choose Remote name: origin
|
|
|
Leave the selection on "Configure push" and click "OK"
|
|
|
|
|
|
set the URI to the URI of your reository
|
|
|
(git@forge.tic.eia-fr.ch:jacques.supcik/tp-algo1-2014.git)
|
|
|
|
|
|
click on "Save and Push"
|
|
|
|
|
|
right-click on "origin" and choose "Configure Fetch..."
|
|
|
click "Advanced..."
|
|
|
click "Add All Branches Spec"
|
|
|
|
|
|
Click "Finish"
|
|
|
Click "Save"
|
|
|
|
|
|
now "origin" iy *your* repository where you save your work
|
|
|
"upstream" is the teacher's repository where he save the initial files
|
|
|
|
|
|
Before each new assignment, fetch from the "upstream" repository
|
|
|
|