Information Technology Reference
In-Depth Information
Log out from the git account:
# Guest OS (Ubuntu 12.04)
# as git user
$ exit
Setting up privileges
As a vagrant user clone the gitolite-admin repository:
Copy the
peter.pub
key from the vagrant's home directory to the
gitolite-
admin/keydir
directory:
# Guest OS (Ubuntu 12.04)
# as vagrant user
$ mv /home/vagrant/peter.pub /home/vagrant/gitolite-admin/
keydir
As a vagrant user edit the
/home/vagrant/gitolite-admin/conf/git-
olite.conf
file and insert the contents presented in
Listing 11-8
.
Listing 11-8.
The contents of the /home/vagrant/gitolite-admin/conf/gitolite.conf file
repo
gitolite-admin
RW+
=
admin
repo
testing
RW+
=
@all
repo
abc
RW+
a
=
peter
RW
b
=
peter
R
c
=
peter