1

I have a project A and another project B. These projects have the same Models. So I want to share my Models folder from project A to projects B and can change the Models from both A and B projects.

I have tested submodule in git for handling this but submodule will clone the whole repository in my second project but I just want a single folder.

Leo
  • 867
  • 1
  • 15
  • 41

1 Answers1

0

Maybe what you are looking for is git subtree?

See for example this blog article by Atlassian that sketches a comparison between git subtree and git submodule.

Also, that SO question "When to use git subtree?" may be worth reading.

ErikMD
  • 13,377
  • 3
  • 35
  • 71