Git: Create repo as submodule -
i'd create new repository submodule of project.
usually, create github repo , add together submodule using command git submodule add together url_to_repo.git
is there way create new repo straight submodule without creating repo somewhere else first (neither locally nor remote e.g. on github)?
i don't see how could: submodule definition sha1 repo (ie other repo must exist parent repo extract said sha1): must have address referenced in .gitmodules
file maintain in parent repo.
submodules composed so-called gitlink tree entry in main repository refers particular commit object within inner repository separate.
submodule.<name>.url
defines url submodule repository can cloned. may either absolute url ready passed git-clone(1) or (if begins ./
or ../
) location relative superproject's origin repository.
so create submodule repo locally, must create anyway.
git git-submodules
No comments:
Post a Comment