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
feature
branch - add my submodule there
- switch back to
main
branch, but here the submodule remains visible which i don't want.
How is it possible ?