This blog post will describe how to setup a central repository where everybody pulls from and pushes to. This is actually the default work flow in Subversion.
Git has a naming convention that repositories that you share with others have a “.git” suffix. Local repositories have just a name.
To create a git bare (also called shared remote) repository do the following on the command line. I assume you already have a “git” user on your server.
su git
mkdir example.git
chmod 770 example.git
cd example.git
umask 007
git init --bare
git config core.sharedrepository 1
git config receive.denynonfastforwards true
More >