1
Is it possible to share a submodule locally?
Post Flair (click to view more posts with a particular flair)
Post Body
The projects I work on use the same submodules as common libraries, so my local folders look like this:
├───Project1
│ ├───Library ABC (Submodule)
│ ├───Library XYZ (Submodule)
├───Project2
│ ├───Library ABC (Submodule)
│ ├───Library XYZ (Submodule)
├───Project3
│ ├───Library ABC (Submodule)
│ ├───Library XYZ (Submodule)
├───Library ABC
├───Library XYZ
Since I also maintain those libraries, I have those repos checked out locally, and I end up with multiple copies of the same folders.
Is there a way to configure the projects to use the copy of the repo that's in the main directory, rather than the subdirectory it creates? Preferably without impacting the repo itself, since I don't want to force the change onto the other developers.
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/git/comment...