Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Egit + Github question
Egit + Github question [message #851395] Fri, 20 April 2012 19:50 Go to next message
Eclipse UserFriend
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: Fri, 20 April 2012 20:00] by Moderator

Re: Egit + Github question [message #852907 is a reply to message #851395] Sun, 22 April 2012 09:05 Go to previous messageGo to next message
Eclipse UserFriend
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 12:07 Go to previous message
Eclipse UserFriend
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: Mon Jun 16 18:16:43 EDT 2025

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

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

Back to the top