Dvc add: Location of .gitignore File

During dvc add the .gitingnore file is always created at the targets location (with --file the location of the .dvc file can be set but this does not seem to affect the location of the .gitignore file which is created or added to).

This is not always desired, for example one could want a single .gitignore file in a projects root directory.

  1. Did i miss something and there is a way to set the .gitignore file location?

  2. Wouldn’t it be more convenient that the .gitignore location is always the same as the .dvc location (when using the --file argument)?

This behavior is not currently configurable. Please feel free to open a feature request on our github regarding specifying the .gitignore location.