wiki:Setting Up Git

Version 3 (modified by alex, 9 years ago) (diff)

--

This page describes how to set up Git for Java training. When the competition comes, instructions will be updated

Git is relatively simple to setup, given that Eclipse comes with Git. You just need to add our repository!

  1. Open up Eclipse.
  2. Go to Window > Perspective > Open Perspective > Other...
  3. Select "git"
  4. Select "Clone a git repository"
  5. At this point, a window should pop up asking for a number of fields. Put the following values in:
    URI: http://jupiter2.raidtech.net:9001/alex/training.git
    Username: srgu2537
    Password: hcpss123
    
  6. Select 'Next,' then 'finish.'
  7. Finally, right click on the new repo and select import projects
  8. Making sure "Import existing Eclipse projects" is checked, press next then finish.

You're done!

Git usage instructions

For the training, right click on the repo, select switch branches, and create a new branch named your name. Then, create packages based off the naming scheme [yourname].[projectname]. Once you're done, switch back to the master branch and merge your branch in. When merging, make sure you select "If a fast forward, create a merge commit."