D
D
DnAp2014-05-07 12:40:36
git
DnAp, 2014-05-07 12:40:36

How can I mount a subdirectory of a repository using git submodule?

Let's say I wanted to include a library from the official repository as a submodule. But the repository contains tests, demos and a lot of things that are not needed during development.
I would like to upload only a directory, let's say src. And at the same time be able to update regularly, send pull requests and other goodies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rsludge, 2014-05-07
@DnAp

Through the git submodule - no way. You can try projects like https://github.com/apenwarr/git-subtree or similar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question