Git commit -am "added martin access to testrepo1 repo" Update the new config to the master git server RW+ = above configuration means:(RW+=Read Write Push) = Back to the gitadmin user’s desktop =Ĭonfiguring gitolite to allow martin to be able to read/write/push in testrepo1 repo Transfer martin’s ssh public key to the GIT serverĬat ~/.ssh/id_rsa.pub | ssh 'cat > ~/gitrepos/gitolite-admin/keydir/martin.pub' RW+ = martin Adding the first normal git user called ‘martin’ For user ‘martin’ you would have your ssh key file in keydir/martin.pub and in nf you have the following: IMPORTANT: Make sure the filename of ssh key matches the user in nf without the ‘.pub’Įg. ~/gitrepos/gitolite-admin/conf/keydir/: directory that contains the ssh public keys files of git users ~/gitrepos/gitolite-admin/conf/nf: file and you will add users, privileges and projects/repos here Git clone descriptitons of the configuration files: = in your desktop linux as gitadmin user =Ĭlone the gitolite control repo into your local work space Transfer the git administrator’s public key to gitolite ~/.ssh/ directory in serverĬat ~/.ssh/id_rsa.pub | ssh 'cat > ~/.ssh/gitadmin.pub' (press the key as answer to every question)Ĭreate the GIT repositories base directory = in your desktop Linux as gitolite user =Ĭreate the gitadmin user as git administrator ssh directory to contain the remote client’s public keys STEPSĪpt-get install git-core python-setuptools gitoliteĬreate the. Then the magic happens immediately at the server side. All done via configuration files in a gitolite-admin repository which gets pulled from the master GIT server by the Gitolite admin user, modified and pushed back. Gitolite allows to control new creation of all new GIT repositories as well as who is allowed to work with which repository. This is a simple and step by step tutorial on how to install GIT server and Gitolite in Debian Squeeze.Since GIT has no authentication/authrization methods on its own Gitolite does fill in. Note: This tutorial is based on this very good site, thanks for the work:
0 Comments
Leave a Reply. |