Friday, December 24, 2010

Initialize Git central repository

To create and initialize git repository on the server you must complete a few steps.

Create repository and a new group then add all the relevant users to that group and give the group ownership of the repository.

To init git repository on the server you must execute this command:

git init --bare --shared example.git

The shared option sets permissions on the everything in the repository to group writers.

No comments:

Post a Comment