Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Way to use local masterBranch
Way to use local masterBranch [message #1163941] Thu, 31 October 2013 06:17 Go to next message
Samuel Suther is currently offline Samuel Suther
Messages: 5
Registered: April 2012
Junior Member
Hi,

i'd like to create a Folder with my Files of the Project.(say /home/projects/p1)
And than, i'd like to create a new Eclipse-Project (say /home/projects/dev/p1), wich use this p1 as orgin master.

So i want to work on the "dev" path, and push my changes to /projects/p1.

How can i configure this at best?
Re: Way to use local masterBranch [message #1176666 is a reply to message #1163941] Fri, 08 November 2013 08:27 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 537
Registered: July 2009
Senior Member
I don't understand your question. Push is an operation transfering commits between different repository
instances but not different folders in the same directory.
Re: Way to use local masterBranch [message #1192008 is a reply to message #1163941] Sun, 17 November 2013 05:19 Go to previous message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 317
Registered: July 2009
Senior Member
Samuel Suther skrev 2013-10-31 11.17:> Hi,
>
> i'd like to create a Folder with my Files of the Project.(say /home/projects/p1)
> And than, i'd like to create a new Eclipse-Project (say /home/projects/dev/p1), wich use this p1 as orgin master.
>
> So i want to work on the "dev" path, and push my changes to /projects/p1.
>
> How can i configure this at best?
>
Clone /home/projects/dev/p1 from /home/projects/p1 or edit .git/config in /home/projects/dev/p1 to point origin to /home/projects/p1.

Also it's a good idea to make /home/projects/p1 a bare repo since pushing to it will not update any checked out files anyway.

-- robin
Previous Topic:Renaming Eclipse project didn't rename folder in local git repo
Next Topic:Error pushing to remote
Goto Forum:
  


Current Time: Wed Jul 23 01:54:05 EDT 2014

Powered by FUDForum. Page generated in 0.02638 seconds