Git: ignore file.ext1 only if file.ext2 exists

Viewed 86

To be precise, there is a project with a bunch of *.el and *.org files. When executed, from every file.org a file.el is generated. Now the .gitignore is being written. Is there a possibility to say that any file.el shall be ignored only if file.org is there, otherwise track file.el

This does not solve it. Neither does writing every single file in the .gitignore

1 Answers
Related