[root@nginx ~]
[root@nginx conf]
repo gitolite-admin
RW+ = admin
repo testing
RW+ = @all
下边定义mytest库,并且指定用户权限:
@mygroup =
test
repo mytest
RW+ = @mygroup
注:此处@mygroup是一个组,给mygroup组赋予对mytest这个库的读、写、推送的权限
(详细规则可参考gitolite的readme.txt)管理员将对gitolite-admin的修改(建库、加用户)
提交到git服务器
[root@nginx gitolite-admin]
/root/gitolite-admin
[root@nginx gitolite-admin]
On branch master
Your branch is up-to-
date
with
'origin/master'
.
Changes not staged
for
commit:
(use
"git add <file>..."
to update what will be committed)
(use
"git checkout -- <file>..."
to discard changes
in
working directory)
modified: conf
/gitolite
.conf
Untracked files: (use
"git add <file>..."
to include
in
what will be committed)
keydir
/test
.pub
no changes added to commit (use
"git add"
and
/or
"git commit -a"
)
[root@nginx gitolite-admin]
[root@nginx gitolite-admin]
On branch master
Your branch is up-to-
date
with
'origin/master'
.
Changes to be committed: (use
"git reset HEAD <file>..."
to unstage)
modified: conf
/gitolite
.conf
new
file
: keydir
/test
.pub
[root@nginx gitolite-admin]
*** Please tell me
who
you are.Run
git config --global user.email
"you@example.com"
git config --global user.name
"Your Name"
to
set
your account's default identity.
Omit --global to
set
the identity only
in
this repository.
fatal: unable to auto-detect email address (got
'root@nginx.(none)'
)
[root@nginx gitolite-admin]
[root@nginx gitolite-admin]
[root@nginx gitolite-admin]
[master 7b877e7] add repo mytest;
add user
test
2 files changed, 5 insertions(+)
create mode 100644 keydir
/test
.pub
[root@nginx gitolite-admin]
Counting objects: 6,
done
.Compressing objects: 100% (5
/5
),
done
.
Writing objects: 100% (6
/6
), 817 bytes | 0 bytes
/s
,
done
.
Total 6 (delta 0), reused 0 (delta 0)
remote: Initialized empty Git repository
in
/home/git/repositories/mytest
.git
/To
git@192.168.3.27:gitolite-admin
3554f3d..7b877e7 master -> master