Difference between revisions of "Clone the ARSIN V01 Repository"

From SIMA wiki
Jump to: navigation, search
(Add Projects to Workspace)
(Add Projects to Workspace)
Line 34: Line 34:
 
#In the package explorer are eight projects visible plus the git related information [ARSIN_V01 master][[File:After import.png|thumb|200px|center]]
 
#In the package explorer are eight projects visible plus the git related information [ARSIN_V01 master][[File:After import.png|thumb|200px|center]]
 
#When you right-click on one of the projects and select Team, you will get the following git context menu:
 
#When you right-click on one of the projects and select Team, you will get the following git context menu:
##Commit - commit your changes [[Umgang mit Git]]
+
##Commit - commit your changes ([[Umgang mit Git]])
 
##Add - add a new file
 
##Add - add a new file
 
##Pull - get the lastet version of the repository from the remote repo on the server (pull can only be made if all your changes are either commited or stashed)
 
##Pull - get the lastet version of the repository from the remote repo on the server (pull can only be made if all your changes are either commited or stashed)

Revision as of 09:44, 25 October 2012

Laufwerk S: anlegen (Windows)

In der Eingabeaufforderung folgenden Befehl eingeben:

subst s: "<Pfad an dem der Code abgelegt werden soll>"

Anschließend den Befehl in einer .bat Datein speichern um im Windows Startup Ordner ablegen


Clone Code

  1. start eclipse
  2. Window/Open Perspective/Other …
  3. “Git Repository Exlopering” → Ok
  4. In case the message with the environment variable HOME appears, please ignore it and press Ok
  5. Select the “Git Repository Exlopering” View
    Git repo expl view.png
  6. Select the icon for “Clone a Git Repository and add the clone to this view”
    Git clone repo.png
  7. Enter ssh://USERNAME@vesta.ict.tuwien.ac.at/home/prj/ARS/GITRoot/ARSIN_V01 in the field URI
  8. Enter your username and password in the fields in the Authentication from group
  9. Press button “Next”
  10. Select all branches. Currently (CB and master).
  11. Press button “Next”
  12. Enter S:\ARSIN_V01 as destination directory. Initial branch is master; Remote name is origin.
  13. Press button “Finish”
  14. Wait until cloning has finished. Typically a few minutes.
  15. Now, the ARSIN_V01 code repository is visible in the Git Repositories tab.
    Git view working.png

Add Projects to Workspace

  1. Open the first level of the repository tree.
    Git repo view.png
  2. Right click on “Working directory” and select “Import Projects”
  3. Select “Import Existing Projects” and press “Next”
    ImportSelect.png
  4. Select All projects (currently: DecisionUnitInterface, DecisionUnitMasonInspectors, DecisionUnits, ExtTools, Sim, TestApps, World)
    SelectProjects.png
  5. Press “Finish”
  6. Switch to view “Java”
  7. Wait until workspace has been built
  8. In the package explorer are eight projects visible plus the git related information [ARSIN_V01 master]
    After import.png
  9. When you right-click on one of the projects and select Team, you will get the following git context menu:
    1. Commit - commit your changes (Umgang mit Git)
    2. Add - add a new file
    3. Pull - get the lastet version of the repository from the remote repo on the server (pull can only be made if all your changes are either commited or stashed)
    4. Push - update the remote repo (you can only push if you have pulled and merged the latest version on the server)

back to:Code repository and Eclipse