Git : Gitolite : Install2020/04/16 |
Install Gitolite which is the Git Repositories Management System.
|
|
[1] | Install Gitolite. |
# install from EPEL [root@dlp ~]# dnf --enablerepo=epel -y install gitolite3
|
[2] | Generate SSH key-pair with Gitolite admin user and Setup. |
[root@dlp ~]#
[gitolite3@dlp ~]$ su - gitolite3
ssh-keygen -f ~/.ssh/gitadmin
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): # set passphrase if need
Enter same passphrase again:
Your identification has been saved in /var/lib/gitolite3/.ssh/gitadmin.
Your public key has been saved in /var/lib/gitolite3/.ssh/gitadmin.pub.
The key fingerprint is:
SHA256:zCAeDQRXiLQiqsUYJAcuLVqOm9gKy568aH/X59Th+CQ gitolite3@dlp.srv.world
The key's randomart image is:
.....
.....
[gitolite3@dlp ~]$
gitolite setup -pk ~/.ssh/gitadmin.pub Initialized empty Git repository in /var/lib/gitolite3/repositories/gitolite-admin.git/ Initialized empty Git repository in /var/lib/gitolite3/repositories/testing.git/
[gitolite3@dlp ~]$
vi ~/.ssh/config # create new # any name you like host GitServer user gitolite3 # Git server's Hostname or IP address hostname 10.0.0.30 port 22 # generated secret key identityfile ~/.ssh/gitadmin
[gitolite3@dlp ~]$
chmod 600 ~/.ssh/config [gitolite3@dlp ~]$ git config --global user.name "gitolite3" [gitolite3@dlp ~]$ git config --global user.email "gitolite3@dlp.server.world" [gitolite3@dlp ~]$ git config --global push.default simple
# clone repository to finish setup [gitolite3@dlp ~]$ git clone ssh://GitServer/gitolite-admin
Cloning into 'gitolite-admin'...
The authenticity of host '10.0.0.30 (10.0.0.30)' can't be established.
ECDSA key fingerprint is SHA256:t7uGBnVeQlpUVngQHlLIyu3DKcGSEr4eLhmp4bAu5rE.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '10.0.0.30' (ECDSA) to the list of known hosts.
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (6/6), done.
|
Sponsored Link |