Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Egit + Github question
Egit + Github question [message #851395] Fri, 20 April 2012 23:50 Go to next message
jean-luc menut is currently offline jean-luc menut
Messages: 2
Registered: April 2012
Junior Member
Hello,

I have a question on egit use. I would like to use github as an online backup for my projects. As far as I understand, I need to have a local directory for them, which means that the files of the project will be duplicated between my eclipse workspace and the local directory.

Is there a possibility to avoid that and to tell egit to use directly the workspaces files ?

thanks

PS: Is there a way to not publicly display my last name on this forum ?

[Updated on: Sat, 21 April 2012 00:00]

Report message to a moderator

Re: Egit + Github question [message #852907 is a reply to message #851395] Sun, 22 April 2012 13:05 Go to previous messageGo to next message
R Shapiro is currently offline R Shapiro
Messages: 386
Registered: June 2011
Senior Member
The only "duplication" here is the one that's fundamental to Git: you have a repository in github, and you have a clone of that repository on your local machine. Your work always happen in the clone.

An Eclipse workspace is something else entirely. The function of a workspace is to remember the state of your work and your settings between sessions. It has to know where to find the files you're working with, but it doesn't care where they live. To work effectively in Eclipse it's important to keep this distinction in mind. Don't confuse the workspace directory, which is pure Eclipse metadata, and the files you're actually working with, in this case the ones in the local clone. These are two completely different things.




Re: Egit + Github question [message #853023 is a reply to message #852907] Sun, 22 April 2012 16:07 Go to previous message
jean-luc menut is currently offline jean-luc menut
Messages: 2
Registered: April 2012
Junior Member
Thanks, I didn't notice that the files were moved form the workspace to the git directory.
Previous Topic:Changed files not picked up for Commit
Next Topic:Struggling with Hello World JGit program
Goto Forum:
  


Current Time: Thu Oct 23 10:27:39 GMT 2014

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

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