Here is my git directory structure
~/git/ProjectA/.git
~/git/ProjectA/ProjectA
~/git/ProjectB/.git
~/git/ProjectB/ProjectB
Is that the convention or is it more preferable to do something like?
~/git/myRepo/.git
~/git/myRepo/ProjectA
~/git/myRepo/ProjectB
or
~/git/.git
~/git/ProjectA
~/git/ProjectB
or something else entirely?
There is no convention per se, but it stands to reason that you use version control for versioning a single project at a time, unless they are sub-projects of a bigger project.
That said, the way you are doing it now conforms to that “convention” of one project per repo.