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">
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"/>
9 <table class=
"navigation" style=
"width: 100%;" border=
"0" summary=
"navigation">
11 <th style=
"width: 100%" align=
"center" colspan=
"3">Creating Repositories
</th>
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"/>
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"/>
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>
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>).
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>
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" > "Share Project" > "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>
47 <table class=
"navigation" style=
"width: 100%;" border=
"0" summary=
"navigation">
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"/>
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"/>
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"/>
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>