I have a question regarding how to best organize the following using Git. I have multiple java and scala projects that are part of one effort. I would like to have the following structure:
/repos
/java-project1
/java-project2
/scala-project1
.....
Is it recommended that I do this:
mkdir repos
cd repos
Repos is a simple directory with 3 git repos inside it.
mkdir java-project1
cd java-project1
git --bare init .
on another machine
mkdir repos
cd repos
mkdir java-project1
git init
git add
git commit
git add remote origin [URL]
git push origin master
Do the same for other java and scala project?
or should I do git init
in repos once and then just add the projects as three sub directories?