E
E
entermix2016-08-04 16:27:56
git
entermix, 2016-08-04 16:27:56

How to connect GIT submodule correctly?

There is a class wrapper in the form of a module (for example, some kind for CMS), how to correctly include the files of this third-party class as a submodule in GIT?
Our repository

..
vendor/Mod

Class repository:
api/php/Mod/mod.php
api/python/Mod/mod.py
..
cpp/
*.js
..
README.txt

That is, a third-party repository has an API for several languages ​​+ stores other files we don’t need (for example, for the full operation of the module, you only need a file file along the path api/php/Mod/mod.php) How to connect this repository correctly (i.e. only the required class without "extra" files, or do you still need to connect the entire repository in the form in which it is?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2016-08-04
@entermix

you need to connect the entire repository in the form in which it is

You answered yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question