-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/02/13 17:10, John McKown wrote:
> I'm not any kind of expert. But have you looked at maybe setting the Data and 
> sim
> subdirectories set up as submodules? http://git-scm.com/docs/git-submodule 
> http://git-scm.com/book/en/Git-Tools-Submodules
> 
> This concept is not really addressing what you want directly, but may be a 
> way to come at it 
> sideways. Which is something I do with distressing regularity. It would 
> almost be as if the
> Data and sim subdirectories were not in the same project subdirectory, but 
> alongside it. Doing
> a git command in the project subdirectory should not affect the submodule 
> subdirectories. I
> think that if you update something in either of those subdirectories, you 
> will need to do the
> proper git commands in that subdirectory.
> 
> E.g. if you want to modify the file "bubba.R" in the sim subdirectory, then 
> do a cd into the
> sim subdirectory, edit the file and do the "git add bubba.R" and "git commit" 
> command in the
> sim subdirectory.

I looked at submodules, and they very likely will do what I would like to have, 
but I believe in
simple solutions and I will use the "different repositories and gitignore" 
approach as oulined by
Konstantin.

I will keep your suggestion in mind if I need something more complex.

Thanks,

Rainer

> 
> Perhaps one of the truly "wise old ones" <grin/> will warn us if I am going 
> off in the wrong 
> direction. It wouldn't surprise me.
> 
> 
> On Tue, Feb 12, 2013 at 9:29 AM, Rainer M Krug
> <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> 
> Hi
> 
> I have question on how to organize to put a project under git.
> 
> The project consists out of effectively three directories:
> 
> - --Data (this is several GB, but it is GIS and slightly dynamic and I would 
> like to have it in
> a local git only as it contains confidential data)
> 
> - --source code (this is the simulation I write (R package), which has to be 
> under git and
> also pushed to github)
> 
> - --simulation files (I would like to have it also under a local git so that 
> I have a record
> of changes)
> 
> so it looks:
> 
> |-Data - -project-+-code |-sim
> 
> So how can I setup git, so that I can push -code to github, but all three 
> folders are under
> git?
> 
> Just to be clear: I am the only developer, and the folders Data and sim are 
> only locally
> relevant, while code contains the package, which can be used independently of 
> the other two.
> 
> Thanks,
> 
> Rainer
> 
> 
> -- You received this message because you are subscribed to the Google Groups 
> "Git for human
> beings" group. To unsubscribe from this group and stop receiving emails from 
> it, send an email
> to git-users+unsubscribe-/[email protected] 
> <mailto:git-users%2Bunsubscribe-/[email protected]>. For 
> more options,
> visit https://groups.google.com/groups/opt_out.
> 
> 
> 
> 
> 
> -- This is a test of the Emergency Broadcast System. If this had been an 
> actual emergency, do
> you really think we'd stick around to tell you?
> 
> Maranatha! <>< John McKown
> 
> -- You received this message because you are subscribed to the Google Groups 
> "Git for human
> beings" group. To unsubscribe from this group and stop receiving emails from 
> it, send an email
> to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] 
> For more options,
> visit https://groups.google.com/groups/opt_out.
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRG2KrAAoJENvXNx4PUvmCTjUH/jnLI6gen/z7GmmTCUXO9qz8
bN14yxR8Oz82+eytJfEcI+6Dl9hXjA2tWzXoZI963rs2Mi3p86QlqyUXBPxIQMJq
mkm3Lx1V1m05JV/kojtTAAkGN8XN+Rv3crluwmyJIiATXZ/4N9prcGrsNjDO5VzG
DDNL3xSGITcXJLiB+VSfIsYm/G/k4ZYaOj1qcfKpr8WG1cp69KYLhxKwAT5i7FQh
Xwtar0ew5YEhKh6bsByPXq9izMYGjXMqUmoRayzU0ILnhQw1Cd4kcWJ9UI0gUsi8
RLWRu0ltSImSoI6akmO9MWan83I1RmtLoT7QW7XV1cYBtapdTQJQy2xc+Mo5ljA=
=On9B
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to