Home > Blockchain >  Is there a way to make sub-projects inside projects in a repository on GitHub?
Is there a way to make sub-projects inside projects in a repository on GitHub?

Time:01-22

I wanted to create a repository of my mini projects and I don't really want to put them many separate repos of small projects. So I want to create a single repo called 'Mini Projects' and put my mini projects inside it. On doing some research I found that creating a repository ('Create Repository') was better suited for me rather than 'Create Project'.

Can this be done? If yes, how? An example would be awesome. If no, please suggest alternatives?

CodePudding user response:

Look into monorepos, it's not something that's required for what you want to achieve; you could just throw in all of your projects within a single git repository and call it a day. But monorepos provide efficient tooling to make this clean and scalable.

CodePudding user response:

Yes, it is possible to create a single repository called "Mini Projects" and put your mini projects inside it. This is often referred to as a "monorepo" and it can be useful for keeping related projects organized and easily accessible in one place.

One way to do this is to create a new repository on GitHub (or your preferred Git hosting service) called "Mini Projects", then clone the repository to your local machine.

Once you have the repository cloned, you can create a new directory inside the repository for each of your mini projects. For example, you might create directories called "project1," "project2," "project3," etc. Inside each of these directories, you can create the file structure for your mini project and add the files to the repository.

You can use git commands to add, commit, and push the changes made to the mini projects.

  • Related