Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse workspace and Git folder layout
    primarykey
    data
    text
    <p>I am migrating from Eclipse/SVN to Eclipse/Git and I am unsure what the best directory layout would be. I have looked at the <a href="http://www.vogella.com/articles/EGit/article.html#firstegit_shareproject" rel="nofollow noreferrer">Vogel/a</a> guide, the <a href="http://wiki.eclipse.org/EGit/User_Guide#Considerations_for_Git_Repositories_to_be_used_in_Eclipse" rel="nofollow noreferrer">Eclipse Wiki</a> as well as the following threads: <a href="https://stackoverflow.com/questions/10531272/is-it-better-to-keep-git-repository-inside-or-outside-of-eclipse-workspace/13510689#13510689">Is it better to keep Git repository inside or outside of Eclipse workspace?</a> <a href="http://www.vogella.com/articles/EGit/article.html#firstegit_shareproject" rel="nofollow noreferrer">Should I store git repository in Home or Eclipse Workspace?</a></p> <p>I am used to setting up eclipse like so:</p> <pre><code>~/projectA/workspace/.metadata ~/projectA/workspace/subproj1/.project ~/projectA/workspace/subproj2/.project ~/projectA/subproj1/.svn ~/projectA/subproj1/file1 ~/projectA/subproj2/.svn ~/projectA/subproj2/file2 </code></pre> <p>So the project holds all project related files i need. The workspace folder holds relatively little data like the local revision info, project descriptions and specific eclipse settings. The subproj folder(s) hold all the source code but also the subversion meta info. The subprojects are more (or less..) related but they all contribute to projectA. The eclipse working directory is ~/projectA/subproj1, ~/projectA/subproj2, etc.</p> <p>I am not completely sure if i could use a more or less similar layout with Git. Biggest difference would be the 'repo' dir.</p> <pre><code>~/projectA/workspace/.metadata ~/projectA/workspace/subproj1/.project ~/projectA/workspace/subproj2/.project ~/projectA/subproj1/.git ~/projectA/subproj1/file1 ~/projectA/subproj2/.git ~/projectA/subproj1/file2 ~/projectA/repo/subproj1 ~/projectA/repo/subproj2 </code></pre> <p>If i set it up like the following, do I still comply with the best practices as mentioned in the <a href="http://wiki.eclipse.org/EGit/User_Guide#Considerations_for_Git_Repositories_to_be_used_in_Eclipse" rel="nofollow noreferrer">Wiki</a>?</p> <p>@eugener I would assume the following layout complies with the Egit manual?:</p> <pre><code>~/projectA/workspace/.metadata ~/projectA/workspace/subproj1/.project ~/projectA/workspace/subproj2/.project ~/projectA/subproj1/.git ~/projectA/subproj1/file1 ~/projectA/subproj2/.git ~/projectA/subproj1/file2 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload