Centralized Git Repository

In my recent svn to git adventures, I have tried to make a centralized git repository on numerous occasions and miserably failed. It seemed obvious to create a repository, clone it, do commits and push, but nooo. We need to create a centralized git repository, by declaring it as a “bare” repository when initializing it.

In the following tutorial I am going to create a centralized git repository, two working trees, and check that this actually works.

Central repository:

  • c:/repositories/git/project-x/

Two working threes:

  • c:/work/project-x/
  • c:/tests/project-x/

More on creating a centralized git repository…