Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Workflow for creating projects with remote support
Workflow for creating projects with remote support [message #667739] Sun, 01 May 2011 17:43 Go to next message
Lukas Glowania is currently offline Lukas Glowania
Messages: 2
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 05:58 Go to previous messageGo to next message
sylvain.pras is currently offline sylvain.pras
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 03:15 Go to previous messageGo to next message
Lukas Glowania is currently offline Lukas Glowania
Messages: 2
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 04:54 Go to previous message
sylvain.pras is currently offline sylvain.pras
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: Thu Apr 24 06:30:59 EDT 2014

Powered by FUDForum. Page generated in 0.01616 seconds