Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Workflow for creating projects with remote support
Workflow for creating projects with remote support [message #667739] Sun, 01 May 2011 21:43 Go to next message
Lukas Glowania is currently offline Lukas GlowaniaFriend
Messages: 3
Registered: April 2011
Location: Germany
Junior Member
Hi,

i'm new to Git but i worked with SVN and Subclipse before.

Let's say i created a Java Project und i decide that i want to share it to a remote repository per SSH. How would i achieve that, so that "Push to Upstream" is enabled?

I tried the following:
1. Create a Project
2. Add Git-Team Support (Team->Share). During the Dialog a local repo inside the project folder is created.
3. Clone a bare project in the shell: git clone --bare MeinTestProjekt/ MeinTestProjekt.git
4. Copy the bare project on the server.

Now how do i get the connection, so that "Push to Upstream" will be enabled?

Thanks in advance!
Re: Workflow for creating projects with remote support [message #667807 is a reply to message #667739] Mon, 02 May 2011 09:58 Go to previous messageGo to next message
sylvain.pras is currently offline sylvain.prasFriend
Messages: 9
Registered: April 2011
Junior Member
In the Git Repositories View, select the repository you created when you share your project, "Create Remote" on the "Reamotes" icon.
Name it "origin"
check Configure push
then click Add on the next panel
and type the URI of your remote bare repository
then make a push to upstrem (eventually force update)
icon14.gif  Re: Workflow for creating projects with remote support [message #667968 is a reply to message #667807] Tue, 03 May 2011 07:15 Go to previous messageGo to next message
Lukas Glowania is currently offline Lukas GlowaniaFriend
Messages: 3
Registered: April 2011
Location: Germany
Junior Member
Thanks a lot! Works fine this way.
Re: Workflow for creating projects with remote support [message #667987 is a reply to message #667739] Tue, 03 May 2011 08:54 Go to previous message
sylvain.pras is currently offline sylvain.prasFriend
Messages: 9
Registered: April 2011
Junior Member
then I suggest you to configure fetch on the "origin" remote and to add in the repository properties :
branch.master.merge = refs/heads/master
branch.master.remote=origin

without that you won't be able to pull and merge
Previous Topic:merge flags all files as modified
Next Topic:Checkout a list of files
Goto Forum:
  


Current Time: Tue Mar 19 06:05:12 GMT 2024

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

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

Back to the top