Update egit help for 0.8.0 from wiki
[egit.git] / org.eclipse.egit.doc / help / EGit / User_Guide / Creating-Repositories.html
blob80fb43976ab6664be039f502a5458b0a61e11d64
1 <?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5 <title>EGit User Guide - Creating Repositories</title>
6 <link type="text/css" rel="stylesheet" href="../../book.css"/>
7 </head>
8 <body>
9 <table class="navigation" style="width: 100%;" border="0" summary="navigation">
10 <tr>
11 <th style="width: 100%" align="center" colspan="3">Creating Repositories</th>
12 </tr>
13 <tr>
14 <td style="width: 20%" align="left">
15 <a href="Perspective-Views-and-Menus.html" title="Perspective, Views and Menus">
16 <img alt="Previous" border="0" src="../../images/prev.gif"/>
17 </a>
18 </td>
19 <td style="width: 60%" align="center"></td>
20 <td style="width: 20%" align="right">
21 <a href="Starting-from-existing-Git-Repositories.html" title="Starting from existing Git Repositories">
22 <img alt="Next" border="0" src="../../images/next.gif"/>
23 </a>
24 </td>
25 </tr>
26 <tr>
27 <td style="width: 20%" align="left" valign="top">Perspective, Views and Menus</td>
28 <td style="width: 60%" align="center"></td>
29 <td style="width: 20%" align="right" valign="top">Starting from existing Git Repositories</td>
30 </tr>
31 </table><hr/>
32 <h1 id="Creating_Repositories">Creating Repositories</h1>
33 <h2 id="Creating_a_new_empty_Git_Repository">Creating a new empty Git Repository</h2>
34 <p>This is currently not possible with EGit. You have to create a project first and to share it afterwards. The Share Project Wizard supports creation of Git repositories (see
35 <a href="http://wiki.eclipse.org/EGit/User_Guide/Sharing#Adding_a_project_to_version_control" title="EGit/User Guide/Sharing#Adding_a_project_to_version_control" target="egit_external">Adding a project to version control</a>).
36 </p>
37 <h2 id="Creating_a_Git_Repository_for_multiple_Projects">Creating a Git Repository for multiple Projects</h2>
38 <p>You may first create all projects under a common directory and then create a common repository for all projects in one go: </p>
39 <ul>
40 <li>create the Eclipse projects e.g. a, b, c under a common directory e.g. <span style="font-family:monospace;">/repos/examples/</span> </li>
41 <li>select all projects a, b, c - from context menu click
42 <b>Team &gt; Share Project &gt; Git</b>
43 </li>
44 <li>press
45 <b>Next</b>
46 </li>
47 <li>select all projects a, b, c </li>
48 <li>the wizard automatically moves up the default repository location to the parent folder <span style="font-family:monospace;">/repos/examples/</span> since multiple projects have been selected </li>
49 <li>click
50 <b>Create Repository</b> and click
51 <b>Finish</b>
52 </li>
53 </ul><hr/>
54 <table class="navigation" style="width: 100%;" border="0" summary="navigation">
55 <tr>
56 <td style="width: 20%" align="left">
57 <a href="Perspective-Views-and-Menus.html" title="Perspective, Views and Menus">
58 <img alt="Previous" border="0" src="../../images/prev.gif"/>
59 </a>
60 </td>
61 <td style="width: 60%" align="center">
62 <a href="User-Guide.html" title="EGit User Guide">
63 <img alt="EGit User Guide" border="0" src="../../images/home.gif"/>
64 </a>
65 </td>
66 <td style="width: 20%" align="right">
67 <a href="Starting-from-existing-Git-Repositories.html" title="Starting from existing Git Repositories">
68 <img alt="Next" border="0" src="../../images/next.gif"/>
69 </a>
70 </td>
71 </tr>
72 <tr>
73 <td style="width: 20%" align="left" valign="top">Perspective, Views and Menus</td>
74 <td style="width: 60%" align="center"></td>
75 <td style="width: 20%" align="right" valign="top">Starting from existing Git Repositories</td>
76 </tr>
77 </table>
78 </body>
79 </html>