Project

Profile

Help

Use Planios Git repositories with Eclipse » History » Sprint/Milestone 1

Jan Schulz-Hofen, 03/13/2014 04:05 AM

1 1 Jan Schulz-Hofen
# Using Planio's Git repositories with Eclipse
2
3
This guide explains how to set up Eclipse to use Planio's Git repositories using EGit. Both Eclipse and EGit are free and can be downloaded from [eclipse.org](http://eclipse.org/).
4
5
Enjoy! Lorem Ipsum dolor sit amet, consetetur sadipscing elitir.
6
7
{{>toc}}
8
9
## Set up a key pair using Eclipse and store your public key in Planio
10
11
  - Select "Window" -\> "Preferences" from the Eclipse application menu.
12
  - Navigate to "General" -\> "Network Connections" -\> "SSH2".
13
  - Select the "Key Management" Tab.  
14
    ![](generate_key.png)
15
  - Click "Generate DSA Key...".
16
  - Click "Save Private Key..." and store it as "id_dsa" in the ".ssh" directory within your home folder.  
17
    ![](key_saved.png)
18
  - Copy the public key (displayed in the text area) into your clipboard.
19
  - Open Planio in your browser, navigate to "My account" -\> "Public keys" and click on "New value".  
20
    ![](store_key_in_planio.png)
21
  - Enter a title for your key. It makes sense to have one key per computer you use, so a good name would be e.g. "Work Laptop".
22
  - Paste the key you copied to the clipboard in the "Key" field and click on "Create".
23
24
## Install EGit
25
26
  - Select "Help" -\> "Install New Software...".  
27
    ![](install_egit.png)
28
  - Select "All Available Sites" from the drop down next to "Work with".
29
  - Type "egit" in the search field.
30
  - Check the box next to "Eclipse EGit (Incubation)" and click on "Next \>", accept the terms and click on "Finish" to install EGit.
31
32
## Make your first commit
33
34
  - Open a context menu for your project, select "Team" -\> "Share Project...", then select "Git" and click "Next \>".  
35
    ![](share_project.png)
36
  - Select your project and click on "Create Repository" to create a local Git repository, then click "Finish".
37
  - Open a context menu for your project, select "Team" -\> "Add" to add your local changes to the cache.
38
  - Open a context menu for your project, select "Team" -\> "Commit" to commit your local changes to the (local) repository.  
39
    ![](commit.png)
40
  - Enter a commit message and perform your first commit. If being asked for your name and email address, please enter the information as needed.  
41
    ![](identify.png)
42
  - Open a context menu for your project, select "Team" -\> "Remote" -\> "Push..." and enter your Planio repository URI in the URI field. You can find your Planio repository URI in your Planio account by navigating to the "Repository" tab.  
43
    ![](repo_details.png)
44
  - Then, click on "Next \>" and select "master \[branch\]" as a source ref and confirm "refs/heads/master" as a destination ref.  
45
    ![](push.png)
46
  - Finally, click on "Add spec", then on Finish.
47
  - If being asked for a password for secure local storage, select a password and click OK. This password is used to encrypt Eclipse data locally, you should not use your Planio password here.
48
  - Your project should have been pushed to Planio's remote Git repository.