Update EGit eclipse help from wiki
[egit.git] / org.eclipse.egit.doc / help / EGit / User_Guide / Creating-Repositories.html
blob2b7dc9093a811c41f32ea7170739019467e36e88
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 "Team" &gt; "Share Project" &gt; "Git" </li>
42 <li>press "Next" </li>
43 <li>select all projects a, b, c </li>
44 <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>
45 <li>click "Create Repository" and click "Finish"</li>
46 </ul><hr/>
47 <table class="navigation" style="width: 100%;" border="0" summary="navigation">
48 <tr>
49 <td style="width: 20%" align="left">
50 <a href="Perspective-Views-and-Menus.html" title="Perspective, Views and Menus">
51 <img alt="Previous" border="0" src="../../images/prev.gif"/>
52 </a>
53 </td>
54 <td style="width: 60%" align="center">
55 <a href="User-Guide.html" title="EGit User Guide">
56 <img alt="EGit User Guide" border="0" src="../../images/home.gif"/>
57 </a>
58 </td>
59 <td style="width: 20%" align="right">
60 <a href="Starting-from-existing-Git-Repositories.html" title="Starting from existing Git Repositories">
61 <img alt="Next" border="0" src="../../images/next.gif"/>
62 </a>
63 </td>
64 </tr>
65 <tr>
66 <td style="width: 20%" align="left" valign="top">Perspective, Views and Menus</td>
67 <td style="width: 60%" align="center"></td>
68 <td style="width: 20%" align="right" valign="top">Starting from existing Git Repositories</td>
69 </tr>
70 </table>
71 </body>
72 </html>