scripts icon indicating copy to clipboard operation
scripts copied to clipboard

Integrating a submodule into the parent repository together with all branches

Open GraninNikita opened this issue 4 years ago • 1 comments

Hi Jeremy,

I am very grateful to you for having git-submodule-rewrite script. It saved a lot of my time when getting rid of submodules in my project.

I'm just curious, how can I integrate a submodule into the parent monorepository with all branches it has?

Thank you in advance!

GraninNikita avatar Apr 28 '21 20:04 GraninNikita

Hi Nikita. Sorry, I'm not really sure. I only needed to use this script once, and posted it here for others to use as well. It doesn't have a roadmap, but folks are welcome to contribute.

The script does accept an optional argument, so that may be of some use in solving your problem. However, it only accepts one, and it will then do some destructive things, like modifying .gitmodules. You might want to update the script to accept a list of , and iterate over the list in all commands that interact with the ${branch} variable.

jeremysears avatar Apr 28 '21 20:04 jeremysears