I'm managing several pdf
and graffle
files with git. I want to add pdf
files to repository only if graffle
with same filename does not exists, e. g.
only add foo.pdf
and bar.graffle
into repository in the directory
$ ls
foo.pdf
bar.pdf
bar.graffle
If such target can't be completed only with gitignore
, is there any work arounds exist?
bar.pdf
can only be generated with bar.graffle
through several steps in GUI, so I want to keep them on commit.