Hi David,

David Dynerman <da...@block-party.net> writes:

> Sorry in advance, this might be more of a git question than an org-mode
> question, but I thought someone on this list might know the answer.
>
> Is it possible to conditionally gitignore certain files based on files
> that are being tracked?
>
> What I'd like is something like the following gitignore logic:
>
> if filename.org is tracked by git:
>    ignore filename.tex, filename.html
>
> If this isn't possible, does anyone have any nice setups for ignoring
> exported versions of org-mode files?

Unfortunately, I don't know how to do what you asked, but what I tend to
do in this situation is to run my exports in a build/ subdirectory, and
then add

build*

to my .gitignore.  Maybe that would work for you?

Best,
Richard


Reply via email to