Github sub-folder link to another repository

Asked

Viewed 47 times

0

I have a repository of free books of programming, and they’re getting too heavy and it’s hard for anyone to clone and climb anything, so I wanted to do the same as the repository of Zeno rocha (https://github.com/dracula/dracula-theme), several folders that link to another repository specific to what the person wants, for example, someone wants to upload a book in the algorithm folder, he enters the algorithm folder and clones the repository that only has the algorithm books, but I don’t know how to make subfolders linked to other repositories, my repository https://github.com/danrigoni/free-livros

1 answer

0


What this repository does is "link" other repositories using "submodules". The command to do this in git is git submodule add <git@github ...> and should run at root in your repository.

To add a sub module elsewhere, enter the path after the repository: git submodule add <git@github ...> algoritmos/

However, for this to work, each of these sections would be a different repository and you would have a repository to make this aggregation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.