This question is somewhat related to this question: Is it possible to have a git repo inside another git repo
Here is the summary:
I had a git repo, which I pushed to my web host. I seperated a subdirectory of that repo, and added that subdirectory back as submodule. Now I am going to remove that subdirectory from my web host, create an empty git repository there, and push my submodule there. So, I was wondering what does --bare switch do, and do I need it.
As a side note, I am git beginner.