# Structure of git separate git repositories for components / apps

**URL:** <https://forum.legato.io/t/structure-of-git-separate-git-repositories-for-components-apps/5425>\
**Category:** Legato Application Framework\
**Created:** [September 28, 2020, 12:46pm UTC](https://forum.legato.io/t/structure-of-git-separate-git-repositories-for-components-apps/5425 "2020-09-28T12:46:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![klaschudie](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@klaschudie](https://forum.legato.io/u/klaschudie)\
**Post date:** [September 28, 2020, 12:46pm UTC](https://forum.legato.io/t/structure-of-git-separate-git-repositories-for-components-apps/5425/1 "2020-09-28T12:46:48Z")

</div>

Hi all,

I’m just wondering if there are some best practices to arange the source git repositories for legato projects with VSCode.  
We want to have dedicated repositories for specific apps (including multiple components). The default structure in VSCode has and ./app and ./component directory. If I follow this structure I can just have one big repository which I dont really like.

I would be happy to know how you do that.

Thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [September 28, 2020, 1:49pm UTC](https://forum.legato.io/t/structure-of-git-separate-git-repositories-for-components-apps/5425/2 "2020-09-28T13:49:30Z")

</div>

I did not put the component folder inside ./component directory.  
I put in the same folder in the application inside ./app.  
(just like the way in Developer studio)

---

<div class="post-metadata">

**Author:** ![Kalai](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kalai/32/1135_2.png) [@Kalai](https://forum.legato.io/u/Kalai)\
**Post date:** [December 29, 2022, 11:43am UTC](https://forum.legato.io/t/structure-of-git-separate-git-repositories-for-components-apps/5425/3 "2022-12-29T11:43:37Z")

</div>

hi,  
I am creating a folder inside the componet with some c files and some outside the folder, i need to access the header file which is present outside the folder  
Atructure will be like this  
Component 1  
Commom Logic - Folder  
File1.c  
Outside file.h

I cant access outside folder.h file inside File1.c can any samples available how to use this

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [December 29, 2022, 2:07pm UTC](https://forum.legato.io/t/structure-of-git-separate-git-repositories-for-components-apps/5425/4 "2022-12-29T14:07:20Z")

</div>

You can include header file folder with -I in cflag inside .cdef file

> **[Component Definition .cdef - Legato Docs](https://docs.legato.io/latest/defFilesCdef.html#defFilesCdef_cFlags)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development
