[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about parallel git repos of source/output files
From: |
Urs Liska |
Subject: |
Re: Question about parallel git repos of source/output files |
Date: |
Sun, 22 Dec 2013 09:04:48 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Am 22.12.2013 04:11, schrieb Carl Peterson:
2) Is it possible to interleave two repos so that in one folder in the
main repo, the main repo ignores PDF and MIDI files and the secondary
repo*only* tracks PDFs and MIDIs? The files that are actually
compiled are in a subfolder of the main repository folder.
Do you have something like this:
/
- file1.ly
- file2.ly
/output/
- file1.pdf
- file1.midi
- file2.pdf
- file2.midi
?
If yes then you can put a second .gitignore file in /output/
Its items are added to the .gitignore in the root directory.
Adding
!*.pdf
!*.midi
will revert the previous exclusions.
Otherwise I don't know of a way to have a doubled repository.
But I'm actually not really sure if your use case really makes sense.
Somehow it looks to me that you'd either want your pdfs to be in a repo
or not.
In any case, if you _do_ track pdfs (either in the same repo or in a
separate one) you should take care not to commit each modification
(after each new compilation) but only 'relevant' ones.
HTH
Urs