This is probably going to sound very confusing(be gentle, I'm no developer), but here goes...
I have a bunch of Puppet modules in Eclipse, one project per module. I want these to go into a remote git repository, one repo per module. This part is easy.
I want to be able to check them out on another box, except I can't figure out how to get the directory hierarchy right. To illustrate:
Local box:
/home/sunner/eclipse/modules/Module[1-9]
Remote server(not the git repo, the server that check out from the git repo, I'll just refer to it as "remote server"):
/whatever/modules/Module[1-9]
Doing this manually with command line git is easy enough, I just "git init" .../modules/Module1 for example, and then push that to /git/Module1.git on the git repo server.
Eclipse/EGit however wants to do the git init one level up, so instead of pushing the contents of Module1 straight into the repo, I push the directory as well, so when I clone on the remote server I end up with "/whatever/modules/Module1/Module1/contents".
Basically I just want Eclipse/EGit to push the contents of the project directory rather than the entire directory itself, so I can clone and get "/whatever/modules/Module1/contents".
Trying to wrap my head around Eclipse on a Monday...
I have a bunch of Puppet modules in Eclipse, one project per module. I want these to go into a remote git repository, one repo per module. This part is easy.
I want to be able to check them out on another box, except I can't figure out how to get the directory hierarchy right. To illustrate:
Local box:
/home/sunner/eclipse/modules/Module[1-9]
Remote server(not the git repo, the server that check out from the git repo, I'll just refer to it as "remote server"):
/whatever/modules/Module[1-9]
Doing this manually with command line git is easy enough, I just "git init" .../modules/Module1 for example, and then push that to /git/Module1.git on the git repo server.
Eclipse/EGit however wants to do the git init one level up, so instead of pushing the contents of Module1 straight into the repo, I push the directory as well, so when I clone on the remote server I end up with "/whatever/modules/Module1/Module1/contents".
Basically I just want Eclipse/EGit to push the contents of the project directory rather than the entire directory itself, so I can clone and get "/whatever/modules/Module1/contents".
Trying to wrap my head around Eclipse on a Monday...