DVC in a directory that is already git-controlled

I want to init dvc in a directory that is already under git.

More precisely, I already have a git-controlled directory that contains all my pycharm projects, and want to initialize dvc in its subdirectory for a specific project.

Am I going to run into trouble later?

Not at all. This is the normal way that DVC is supposed to work.

3 Likes

Hi @byoussin! Do you want to initialize it specifically for a subdirectory of the git-controlled project? I’m not sure DVC can do that right now. Most likely if you run dvc init it will create .dvc in the root of the git-controlled directory. @kupruser can give more details for this scenario.

2 Likes