I have a few questions about git. I have read a couple of documents illustrating how git command works. But never one that talked about how Git could be used and its behaviors. I'm using SmartGit as interface and only rarely use the command prompt(which I should do more often) and I connect to my own git server on my network.
First off, why am I getting a sub-folder when I clone a repository into my projects ? For example I have a project in java. So I make a repository on my server and I clone it on my laptop, the folder I clone to is my project folder directly under my /workplace. But then inside my project's folder I have another folder and this one is the cloned repo. Then I have to copy all the files in there and if anything was liked to the previous pathname I have to fix it all. Am I missing something ?
My next question is in regard on how we use Git for. Should my repositories be the root of multiple projects ? Or a single repo per project ? I'm guessing a single project per repo but I might be wrong. Is there any standardized way of classifying our git files and projects ?
Sorry if this wall of text kills anyone, but I ran out of ideas on how to format my question. Apart from a book or two explaining the mechanisms of Git this is all trial and error learning, I might be woefully wrong and be glad if anyone could point me toward the right direction.