[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Conditional .gitignore for org-mode files
From: |
Richard Lawrence |
Subject: |
Re: [O] Conditional .gitignore for org-mode files |
Date: |
Mon, 27 Apr 2015 08:11:05 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
Hi David,
David Dynerman <address@hidden> 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