git - On submodile update, don't fetch non-submodule files -
i'm little confused on how add , clone files i've added submodule.
i have private git repo within has submodule pointing public github repo. within repo, add single new file , commit it. go main private project repo , commit , push change. merges without issue. note, not want push new file public github. want in private repo.
here's issue starts. user clones repo. submodule init. after that, submodule update fails. fails because it's trying download commit id new file added public github site. file isn't on public repo (nor want there), it's in private repo.
is there way tell git download latest commit present in public repo? perhaps way i'm going committing , push changes issue?
what drew me use submodules "resync" github project.
is valid use case submodules in git?
i'm thinking if want add own files submodule should fork it. if public repo lives on github easy procedure.
so create fork, push commit there , point submodule url instead.
Comments
Post a Comment