Reputation: 95
I am working with two repositories: Library
and Project1
. Here's my current setup:
Repositories:
Library
and Project1
to create Library.myfork
and Project1.myfork
.Project1.myfork
is added as a submodule inside the examples/
folder of Library.myfork
.Folder Structure:
My current structure in Library.myfork
looks like this:
Library.myfork/
├── examples/
│ └── Project1.myfork/ (submodule pointing to Project1.myfork)
├── src/
├── README.md
└── ...
Problem:
Library.myfork
, the commit includes both the examples/Project1.myfork
submodule reference and its changes.Library.myfork
to the original Library
repository, this PR causes conflicts because other developers may have added their own forks of Project1
as submodules (e.g., Project1.theirfork
).What I've Tried:
What's the best way to manage this setup without causing conflicts in pull requests? Specifically:
Project1.myfork
in the examples/
folder of Library.myfork
without affecting PRs to the main Library
repository?Upvotes: 1
Views: 46