I have tried git submodule. Although it can solve my problem of sharing repository in projects, but using submodule has 2 issues that troubles me:
- The submodule folder need to commit if submodule contents has committed changes.
- Branch settings is not propagate into submodules. We have to manually switch branch in submodules if works in branches are across submodule.
These 2 problems introduces errors easily for daily development work. I found git slave may solve my problem.
Is there any side effect of using git slave?
Or is there are good practices to avoid the above issue in git submodule?