I have a tools collection which I sync between my computers via git pull on remote repo with working tree.
Whenever some of the tools have git source I add them by 'git submodule add' .
Sometimes I do small modifications, compile tools, and add want to commit it in git repo - my aim is to use them fast with possibility to recompile. What is a proper workflow for that? If I start with:
modulepath/submodulepath/bin$ git add submodulefile
modulepath/submodulepath/bin$ git commit -m "subfix"
modulepath/submodulepath/bin$ git pull origin master
modulepath/submodulepath/bin$ cd ../../
modulepath/$ git add submodulepath;git commit -m "subfix in sub"
then will the commit subfix be propagated after I pull main repo ? I've read here git submodule update that I need to commit first submodule. But with the fact my commit won't be pushed to submodule origin but I want to sync the change between hosts sharing main module, how to proceed? Is it possible to overlay changes in submodule by main module? Or can I start a submodule branch without upstream url - it will only be fetched/merged with parent main module.