... | ... | @@ -45,7 +45,7 @@ Note: You can skip this step if you already have a SSH key pair or if you prefer |
|
|
* Add the teacher and assistant as a "Reporter"
|
|
|
* If you work in a team, you can also add your co-worker as a "Developer"
|
|
|
|
|
|
5) Add your remote repository to Eclipse
|
|
|
6) Add your remote repository to Eclipse
|
|
|
----------------------------------------
|
|
|
* Go back to Eclipse, and right-click on "Remotes".
|
|
|
* Choose "Create Remote...".
|
... | ... | @@ -63,14 +63,14 @@ Note: You can skip this step if you already have a SSH key pair or if you prefer |
|
|
Now "origin" iy **your** repository where you save your work and
|
|
|
"upstream" is the **teacher's repository** where we save the initial files for the assignments.
|
|
|
|
|
|
6) Set the origin as your default remote repository
|
|
|
7) Set the origin as your default remote repository
|
|
|
---------------------------------------------------
|
|
|
* Right-click on the repository name (tp-algo1-2014)
|
|
|
* Click on "Properties"
|
|
|
* Click on `branch -> master -> remote`
|
|
|
* Replace "upstream" by "origin"
|
|
|
|
|
|
7) Create your first Java project for this lecture
|
|
|
8) Create your first Java project for this lecture
|
|
|
--------------------------------------------------
|
|
|
* Open the "Java perspective".
|
|
|
* Create a new Java project `File -> New -> Java Project`.
|
... | ... | @@ -78,25 +78,25 @@ Now "origin" iy **your** repository where you save your work and |
|
|
* Click on Browse and choose the directory of your local git repository (.../git/tp-algo1-2014/s01).
|
|
|
* Click on "Finish"
|
|
|
|
|
|
8) Add the "git" menu to your Java perspective
|
|
|
9) Add the "git" menu to your Java perspective
|
|
|
----------------------------------------------
|
|
|
* Click on `Window -> Customise Perspective...`.
|
|
|
* Open the "Command Groups Availability".
|
|
|
* Check "Git" and "Git Navigation Action"
|
|
|
|
|
|
9) Solve the assignment
|
|
|
10) Solve the assignment
|
|
|
----------------------
|
|
|
* Edit the files to solve the assignment and save your file
|
|
|
* Commit often your changes to your local repository (using the "Commit changes" icon of your menu bar)
|
|
|
* Push your changes to the "origin"
|
|
|
|
|
|
10) At the beginning of each new assignment, fetch the "upstream"
|
|
|
11) At the beginning of each new assignment, fetch the "upstream"
|
|
|
----------------------------------------------------------------
|
|
|
* Open the "Git perspective": `Window -> Open Perspective -> Other... -> Git Repository Exploring`.
|
|
|
* Open the "Remotes" section of the repository "tp-algo1-2014"
|
|
|
* Right-Click on "upstream" and choose "Fetch"
|
|
|
|
|
|
11) Create the new project and solve the next assignment
|
|
|
12) Create the new project and solve the next assignment
|
|
|
--------------------------------------------------------
|
|
|
* Open the "Java perspective".
|
|
|
* Create a new Java project: `File -> New -> Java Project`.
|
... | ... | |