[git@redis_master ~]$ /home/git/bin/gitolite setup -pk .ssh/id_rsa.pub \\使用管理员公钥安装Gitolite
Initialized empty Git repository in /home/git/repositories/gitolite-admin.git/
Initialized empty Git repository in /home/git/repositories/testing.git/
6、生成管理员仓库gitolite-admin
1
2
3
4
5
6
7
8
9
10
11
12
[git@redis_master ~]$ git clone git@127.0.0.1:gitolite-admin
Initialized empty Git repository in /home/git/gitolite-admin/.git/
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
RSA key fingerprint is 64:df:86:6c:e3:96:c3:52:80:a7:d8:af:27:4a:4c:80.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (6/6), done.
[git@redis_master ~]$ ls
bin gitolite gitolite-admin gitolite.tar.gz projects.list repositories
7、了解gitolite-admin仓库配置及TortoiseGit安装及秘钥生成
1
2
3
4
5
6
7
8
9
10
[git@redis_master ~]$ cd gitolite-admin/
[git@redis_master gitolite-admin]$ ls conf/ keydir/ .git/
conf/:
gitolite.conf
.git/:
branches config description HEAD hooks index info logs objects packed-refs refs
[git@redis_master gitolite-admin]$ git add conf/gitolite.conf \\将gitolite.conf添加到暂存区
[git@redis_master gitolite-admin]$ git add keydir \\将keydir添加到暂存区
[git@redis_master gitolite-admin]$ git commit -m " New add sunshine.pub key and conf/gitolite.conf " \\提交并说明内容
[master 9d8a7e7] New add sunshine.pub key and conf/gitolite.conf
Committer: git <git@redis_master.(none)>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly: