CentOS Stream 8
Sponsored Link

Git : Gitolite : Install2021/06/18

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 ~]#
su - gitolite3
[gitolite3@dlp ~]$
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:5g3cv2XD22UL+Gn2pPzQlRbUExCUc5p7u03OOyXz9LA 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
    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 ' (' can't be established.
ECDSA key fingerprint is SHA256:bm8HoSi5APr9Ux0WHiuVDBh9OdvdUGnPagD7fK4xyis.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '' (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), pack-reused 0
Receiving objects: 100% (6/6), done.
Matched Content