github - Git/hub submodule: track upstream & modify without missing commits -


so there 2 specific setups. first:

repoa     submoduleb  <-- repob-upstream 

with setup, submodule update --remote tracks latest changes repob-upstream. submoduleb can commit local changes, , repoa can commit changes submoduleb. unfortunately, commits in repoa store hashes of changes submoduleb. since don't have commit rights repob-upstream, on cloning repoa others receive:

fatal: reference not tree: <hash> unable checkout '<hash>' in submodule path '<submoduleb>' 

it nice if local commits submoduleb stored in repoa...

second:

repoa     submoduleb  <-- repob-fork  <-- repob-upstream 

in setup, have commit rights repob-fork , can push changes submoduleb. therefore submodule update --remote won't throw "unable checkout" errors. unfortunately, have manually merge changes repob-upstream repob-fork.

so,

is there way best of both worlds?


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -