1

I have an repository for my app: AppRepo
And inside, I have two modules:
- Site
- Time

Folder Structure:

.AppRepo  
    ├── Controller  
    ├── Routes  
    ├── Models  
    └── Modules  
        ├── Site  
        └── Time  

And I need push all changes I do over AppRepo on your repository, but not including the Modules changes. The changes of modules , I want push to different repositories (one for each module).

But when I wish clone the AppRepo I want clone too the modules content...

Exist a configuration for GIT for this behaviour? I can exclude the Modules Folder with .gitignore, but i want know if exist a better way.

Omkar C.
  • 685
  • 7
  • 20
Apkahym
  • 29
  • 5
  • 2
    I think you need submodule for this. – Chuan Dec 13 '19 at 13:20
  • [tag:git-submodules], [tag:git-subtree], [tag:git-subrepo] – phd Dec 13 '19 at 13:28
  • @Chuan I know, but when I want to press AppRepo, this include changes of the modules, but each module have a own git-repo and I want push on this repos and not in master repo of the App – Apkahym Dec 13 '19 at 13:59

1 Answers1

0

Just create a .gitignore file in your AppRepo root and add the Modules/ in the file see how to create gitigrore file

bahram
  • 92
  • 8