Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How create Git repository from Eclipse project?
How create Git repository from Eclipse project? [message #474962] Wed, 05 August 2009 22:07 Go to next message
Steven Emmerson is currently offline Steven EmmersonFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

How can I use EGit to create a Git repository from sources that are
already in an Eclipse project? I found literature on how to import from a
Git repository, but nothing on exporting.

I'm running Eclipse 3.4.0, EGit 0.5.0, and Git 1.6.0.6.

Regards
Re: How create Git repository from Eclipse project? [message #476809 is a reply to message #474962] Thu, 06 August 2009 01:53 Go to previous messageGo to next message
John Bito is currently offline John BitoFriend
Messages: 54
Registered: July 2009
Member
Steven Emmerson wrote:

> How can I use EGit to create a Git repository from sources that are
> already in an Eclipse project?

EGit supports the common interface for Eclipse Team collaboration.
Right-click on your project and select Team -> Share Project. Select
Git and click Next. On the 'configure git repository' dialog, you may
have to select your project again. Then you should have the option to
Create the repository specified in the input line at the bottom of the
dialog (click Create). Then click Finish.

After that, you can right-click folders and do Team -> Add to Version
Control. The next step is to commit; until then, the repository will be
empty. What you have at this point is version control on your own
machine. You'll eventually want to push the contents of your repository
to another server. I use GitHub, so I don't have any guidance for how
to set up any other system. The guidance there is pretty good.

Good luck!
John
Re: How create Git repository from Eclipse project? [message #491067 is a reply to message #476809] Tue, 13 October 2009 06:03 Go to previous messageGo to next message
Mykola Nikishov is currently offline Mykola NikishovFriend
Messages: 58
Registered: July 2009
Member
John Bito wrote on Wed, 05 August 2009 21:53
Steven Emmerson wrote:

> How can I use EGit to create a Git repository from sources that are
> already in an Eclipse project?

Then you should have the option to Create the repository specified in
the input line at the bottom of the dialog (click Create). Then click
Finish.


Actually this doesn't work as expected.
Re: How create Git repository from Eclipse project? [message #491324 is a reply to message #474962] Wed, 14 October 2009 07:26 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Have a look in the draft of the user guide we started recently and let us know if this is understandable and what you miss in this draft : http://wiki.eclipse.org/EGit/User_Guide/Getting_Started
Re: How create Git repository from Eclipse project? [message #573863 is a reply to message #474962] Thu, 06 August 2009 01:53 Go to previous messageGo to next message
John Bito is currently offline John BitoFriend
Messages: 54
Registered: July 2009
Member
Steven Emmerson wrote:

> How can I use EGit to create a Git repository from sources that are
> already in an Eclipse project?

EGit supports the common interface for Eclipse Team collaboration.
Right-click on your project and select Team -> Share Project. Select
Git and click Next. On the 'configure git repository' dialog, you may
have to select your project again. Then you should have the option to
Create the repository specified in the input line at the bottom of the
dialog (click Create). Then click Finish.

After that, you can right-click folders and do Team -> Add to Version
Control. The next step is to commit; until then, the repository will be
empty. What you have at this point is version control on your own
machine. You'll eventually want to push the contents of your repository
to another server. I use GitHub, so I don't have any guidance for how
to set up any other system. The guidance there is pretty good.

Good luck!
John
Re: How create Git repository from Eclipse project? [message #574607 is a reply to message #476809] Tue, 13 October 2009 06:03 Go to previous messageGo to next message
Mykola Nikishov is currently offline Mykola NikishovFriend
Messages: 58
Registered: July 2009
Member
John Bito wrote on Wed, 05 August 2009 21:53
> Steven Emmerson wrote:
>
> > How can I use EGit to create a Git repository from sources that are
> > already in an Eclipse project?
>
> Then you should have the option to Create the repository specified in
> the input line at the bottom of the dialog (click Create). Then click
> Finish.


Actually this https://bugs.eclipse.org/bugs/show_bug.cgi?id=291303 as expected.
Re: How create Git repository from Eclipse project? [message #574729 is a reply to message #474962] Wed, 14 October 2009 07:26 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Have a look in the draft of the user guide we started recently and let us know if this is understandable and what you miss in this draft : http://wiki.eclipse.org/EGit/User_Guide/Getting_Started
Previous Topic:java.io.FileNotFoundException when checking out a branch
Next Topic:java.io.FileNotFoundException when checking out a branch
Goto Forum:
  


Current Time: Tue Apr 16 15:05:23 GMT 2024

Powered by FUDForum. Page generated in 0.75166 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top