git

Working with git repositories

  • Posted on: 20 November 2015

Initialize bare git repository

Use these commands to initialize a bare (empty) git repository. This is usualy a good idea when you want to create a central repository.

mkdir /var/git-repo/project.gif
cd /var/git-repo/project.gif
git init --bare

Configure git groups and users

Also make sure that the developers will have access to the repo. This can be done by adding them to a group developers and giving permissions to the git repository directory.

If the developers group does not exist yet, you can create it with this command:

Tags: