Say i have a repo that has two branches: main and feature. Now i want my feature branch to depend on another repo as a submodule but i want that submodule to be visible only to that feature branch not to the main branch.
I have already tried:
- switch to
featurebranch - add my submodule there
- switch back to
mainbranch, but here the submodule remains visible which i don't want.
How is it possible ?