Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Share a project and create a repo
Share a project and create a repo [message #652407] Thu, 03 February 2011 18:23 Go to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I'm trying to figure out how to use EGit to share a project effectively.

1) share the project ... that creates a <project>/.git directory.

2) create a new bare repository somewhere

3) push from the project repo to the new bare repo

4) delete the project and clone from the new repo

Does that sound about right?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Share a project and create a repo [message #652491 is a reply to message #652407] Fri, 04 February 2011 09:45 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
Paul Webster wrote on Thu, 03 February 2011 13:23


4) delete the project and clone from the new repo




This step is not necessary.
Re: Share a project and create a repo [message #652530 is a reply to message #652491] Fri, 04 February 2011 12:34 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 02/04/2011 04:45 AM, Manuel Doninger wrote:
> Paul Webster wrote on Thu, 03 February 2011 13:23
>> 4) delete the project and clone from the new repo
>
>
> This step is not necessary.

Based on my steps, I can't now select the project and then use push ...
is there another step necessary?

In step #3 I use the Git Repo Explorer to push from the project repo to
the bar repo.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Share a project and create a repo [message #652648 is a reply to message #652407] Fri, 04 February 2011 20:25 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
You have to configure the bare repository as remote at your local repository. Then the Push command in the Team menu should work.
Re: Share a project and create a repo [message #652864 is a reply to message #652648] Mon, 07 February 2011 12:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 02/04/2011 03:25 PM, Manuel Doninger wrote:
> You have to configure the bare repository as remote at your local
> repository. Then the Push command in the Team menu should work.

If I configure push and fetch to point to the bare repo (after I've
pushed the first time) it looks OK in the git repo explorer, but
selecting push to upstream or pull on my project generates an error
about some property not being set. I'll reproduce later today and open
a bug report.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Share a project and create a repo [message #652902 is a reply to message #652864] Mon, 07 February 2011 13:58 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Opened bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=336504

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:JGit - What are all these entries in DirCache?
Next Topic:Updte site dind't work
Goto Forum:
  


Current Time: Thu Apr 25 08:45:53 GMT 2024

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

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

Back to the top