How to add a shallow git submodule at a given tag -
i want include large git repository submodule in project. reduce download times developers in project, i'd add submodule when cloned, 1 version retrieved. also, version need older version marked tag.
how achieve when adding module or when setting new clone?
as stated in this answer can use --depth
parameter:
git submodule add --depth 1 -- repository path git submodule update --depth -- [<path>...]
Comments
Post a Comment