Before proceeding with the installation process, ensure the following prerequisites are met:
sudo dnf update -y
sudo dnf install gitolite3 -y
sudo adduser git
sudo su - git
gitolite setup -pk YOUR-PUBLIC-KEY-FILE
Note: Replace YOUR-PUBLIC-KEY-FILE
with the path to your public key file.
4. Edit the Gitolite configuration file with the command below:
nano ~/.gitolite.rc
$REPO_UMASK = 0027
$GL_ADMIN = 'your_username'
Note: Replace your_username
with your account username.
gitolite create my-repo
Note: Replace my-repo
with the desired name of the repository.
2. To add a new user to Gitolite, create a new public key file in the following format:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJEcIh...
new_user.pub
and copy it to the ~/gl-admin/keydir
directory.git add .
git commit -m 'Add new user'
git push
Note: You need to have write access to the Gitolite repository to perform the above command.
Congratulations, you have successfully installed Gitolite on Fedora Server Latest and created a Git repository.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!