# Using DVC with/in subtrees

**URL:** <https://discuss.dvc.org/t/using-dvc-with-in-subtrees/1877>\
**Category:** Questions\
**Created:** [December 8, 2023, 11:00am UTC](https://discuss.dvc.org/t/using-dvc-with-in-subtrees/1877 "2023-12-08T11:00:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnAtl](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/johnatl/32/365_2.png) [@JohnAtl](https://discuss.dvc.org/u/JohnAtl)\
**Post date:** [December 8, 2023, 11:00am UTC](https://discuss.dvc.org/t/using-dvc-with-in-subtrees/1877/1 "2023-12-08T11:00:36Z")

</div>

I’ve checked the docs, and don’t see mention of subtrees.

How well does DVC work with subtrees?

I’ve recently discovered subtrees, and they seem to fulfill my need to have folders that are somewhat independent within a main repository. I wonder if a DVC-managed folder would work as a subtree though, as the .dvc file is outside the folder. It would seem there is the same issue with submodules.

E.g.

```auto
❯ tree -L 1   
.
├── build
├── canary.zeros
├── dist
├── docs
├── exams
├── exams.dvc

```

Say the parent folder is in, `repo_main`, and `exams` is in `repo_exams`, then it would appear that `exams.dvc` would be managed by `repo_main`, instead of `repo_exams`, leading to inconsistencies between the folder and its hashes in the .dvc file.

I would appreciate suggestions on how to handle this, or thoughts on how others handle this.
