loading...

Discussion on: How to keep github repo general ?

Collapse
eruizdechavez profile image
Erick Ruiz de Chavez

What you want to do is usually called monorepo which is a single repo with many projects on it, which may or may not be related.

You can do some research now that you know the name of what you want to do, but there is no big science in doing this, as it is just a folder with many folders inside. There are some specific tools for some languages, for example, JavaScript projects can use Lerna to make the maintainers live easier, I see myself using Lerna even for non JavaScript projects, I've used in the past and it is very handy.

GitHub will by default render any README.md file on any folder as if it were the top repo, so you could potentially have a main README.md file on the top of your repo, a bunch of folders for each project, and then a README.md per folder to explain what it is, what it does, etc., something like this:

.
├── README.md
├── foo
│   └── README.md
├── bar
│   └── README.md
└── baz
    └── README.md
Collapse
uzair004 profile image
Muhammad Uzair Author

Thanks for help ☺️, will research about it, new to git so don't know much rules.