For some reason, I only have one repository to use.
But I have multiple projects including java projects, PHP scripts and Android apps projects.
Now my problem is, I have to put them to different sub-folders inside the repository
I use different IDEs, You know, each IDE can have a workspace of itself.
Is there a simple way (say, by design and not by opinion) to solve the problem?
While most people will tell you to just use multiple repositories, I feel it’s worth mentioning there are other solutions.
Solution 1
A single repository can contain multiple independent branches, called orphan branches. Orphan branches are completely separate from each other; they do not share histories.
This creates a new branch, unrelated to your current branch. Each project should be in its own orphaned branch.
Now for whatever reason, git needs a bit of cleanup after an orphan checkout.
Make sure everything is committed before deleting
Once the orphan branch is clean, you can use it normally.
Solution 2
Avoid all the hassle of orphan branches. Create two independent repositories, and push them to the same remote. Just use different branch names for each repo.