What are the appropriate commands to create a remote "central" repo to use in a collaborative work environment for centralized workflow?
We are new to git and are starting from scratch to set up source control for a collaborative development.
There are lots of good resources here on stackoverflow, the git-scm site, and more. However, despite doing a lot of searches, I failed to find any useful info about the "from scratch" set up.
The best resource I found so far were the git book http://git-scm.com/book and Will's post Git for beginners: The definitive practical guide.
However I couldn't find anything about starting from scratch. Most posts assume that one starts from an existing remote repository or init an existing code base into git and then push it to some remote for collaboration.
I did the latter, but soon found myself or other developer not being able to push, not having access permissions or worse, screwing up something, so that I or him/her lost remote tracking on the pushed repo and not being able to get it back. One box (win xp) would work, but the other (win7) would not.
We use GitExtensions and initially I created the remote repo via "create remote bare repo". This resulted in the problems described. My latest attempt was to create my local repo, then clone it from local to remote as a public bare repo. So far this seems to work much better, i.e. no permissions problems, etc.
In hind-side, it looks like GitExtensions may have created a remote private repo rather than creating a repo that is capable of serving as the central collaboration repo, while using the clone repo dialog with selecting "public bare" repo seems to have created a repo that is configured to work for multi user collaboration.
Is this a GitExtensions or git problem? From what I read in the book, manuals or other git posts, I had assumed that I should be able to create a remote repo, push my local repo and use the remote to share my work or have others contribute. However that didn't seem to work. Only the cloning of my local repo to the remote location seems to now work as expected.
I am sure I missed something, but please tell me...