# DVC in a directory that is already git-controlled

**URL:** <https://discuss.dvc.org/t/dvc-in-a-directory-that-is-already-git-controlled/208>\
**Category:** Questions\
**Created:** [August 22, 2019, 12:35pm UTC](https://discuss.dvc.org/t/dvc-in-a-directory-that-is-already-git-controlled/208 "2019-08-22T12:35:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![byoussin](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@byoussin](https://discuss.dvc.org/u/byoussin)\
**Post date:** [August 22, 2019, 12:35pm UTC](https://discuss.dvc.org/t/dvc-in-a-directory-that-is-already-git-controlled/208/1 "2019-08-22T12:35:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dashohoxha](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/dashohoxha/32/45_2.png) [@dashohoxha](https://discuss.dvc.org/u/dashohoxha)\
**Post date:** [August 22, 2019, 1:49pm UTC](https://discuss.dvc.org/t/dvc-in-a-directory-that-is-already-git-controlled/208/2 "2019-08-22T13:49:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shcheklein](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/shcheklein/32/173_2.png) [@shcheklein](https://discuss.dvc.org/u/shcheklein)\
**Post date:** [August 23, 2019, 4:19am UTC](https://discuss.dvc.org/t/dvc-in-a-directory-that-is-already-git-controlled/208/3 "2019-08-23T04:19:46Z")

</div>

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.
