Monday, April 29, 2013

GIT: Setting Up a Shared Repository

Shell commands for creating new git shared project:
 
$ mkdir /pub/my-repo.git
$ cd /pub/my-repo.git
$ git --bare init --shared
$ git --bare fetch /home/alice/myproject master:master
 
$ chgrp -R $group /pub/my-repo.git
 
 

No comments:

Post a Comment