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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -