I have been working on Eclipse for a long time, but new to Git / Egit. I recently tried using Egit because I want to use GitHub to work with multiple projects. The projects I want to work on are not Eclipse-specific projects, but I would still like to set up a workflow so that I can work with them in Eclipse.
It seems that there are several things that need to be brought together:
- Remote Repository (on GitHub)
- Local repository (somewhere on my file system)
- Git working directory
- The Eclipse project I want to work on (including material outside the source tree, for example, Eclipse project files, Maven configuration, build files, etc.).
How do they relate to each other and what should be my workflow?
In particular:
- Do I really need a local repository or can I just work directly with a remote repository (e.g. SVN)?
- Can a Git working directory also be an Eclipse project? Or is this a bad idea?
- What should be my push / pull / fetch workflow, etc.?
- If I use Maven to manage dependencies in an Eclipse project but donβt want all Maven-specific stuff to be SCM bound, can this work?
Guess I'm sorry for the good advice from the one who successfully did this job!
source
share