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

On 12/02/13 17:01, Konstantin Khomoutov wrote:
> On Tue, 12 Feb 2013 16:29:09 +0100 Rainer M Krug 
> <r.m.krug-re5jqeeqqe8avxtiumw...@public.gmane.org> wrote:
> 
>> 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.
> 
> I imagine the simplest way to go would be this:
> 
> 1) Initialize the root of your tree as a git repository. 2) Add the "Data" 
> directory to the 
> ignore list (.gitignore file). 3) Go to the "Data" directory and initialize 
> there another 
> repository.

The more I think about it, this is likely the easies and best solution. The 
Data and code do not
have to be in sync, as the results which are stored in Data will anyway refer 
to the branch of the
code from which they were simulated. So much ess commits ae needed for Data 
then for code.

Thanks,

Rainer

> 
> Now calls to Git in the top-level directory (and its subdirectories, except 
> "Data") will find 
> the root repository and ignore your data; calls to Git in the "Data" 
> directory will find the 
> repository there, and use it.
> 
> The upside is that both projects are completely disjoint.  The possible 
> downside is that this 
> might not be convenient if you want your simulation data to be somehow in 
> sync with the
> commits in the code repository.  In the latter case, the way to go is to use 
> submodules or to
> resort to some more manual solutions such as attaching notes to certain 
> commits in the code
> repository containinig SHA-1 names of the matching commits in the data 
> repository -- the notes
> are not pushed by default.
> 

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

iQEcBAEBAgAGBQJRG2IKAAoJENvXNx4PUvmCezEH/0j8WDXctaJEIZ0IJHzQnjJL
K1XB42w2Q1hOo9qPVJg7IDSFhqZRQYxlI6avX50QBeBTbDai1rNJgXJ3WpDLCRZc
gU20DksPyYWxKusRzk/f4BF7ACL2d5Yd0PAKXU/kWLvmyl0d6p51CcNa1RAhrbiq
3InUZjt4uGO682ex4QtSawqhUl6MLeNArnxhqW7yiQnVN5OHwyGo6Dc7rtwFa65t
y2TaIr4XaMa7AXmlV5jbiaK5qpvOW6xpM+VkjdONTmpQPjYqD9VnMT2+FjVzKJQR
5Q9kRYZ0zmXbPNpFDIYmcbXe2As0xwwOzzbO08G6c3zPLcpaSUsLX9rzwKRRFug=
=n5ic
-----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 git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to