Gitolite Server Setup

Source: Internet
Author: User

1. Create a dedicated account on the server

sudo adduser--system--shell/bin/bash--group git

2. Add git to the SSH user group

sudo adduser git ssh

3. Set a password for your git account

sudo passwd git

4. Install Git and openssh-server

sudo apt-get install Git-core openssh-server

5. Configure Git

sudo apt-get install Git-core openssh-server

git config--global [email protected]

6. Install Git-1.9.4-preview20140929.exe on the client computer and find Git bash.vbs in the installation directory and then generate the admin key in Git Bash


7. Copy the generated public key to the GIT server

SCP xxx/.ssh/ [email protected]:/tmp/

8. Add readable permissions for

sudo chmod a+r/tmp/

9. Download Gitolite

git clone git://

10. Switch user to Git to create bin in git directory to install Gitolite

mkdir ~/bin

11. Installing Gitolite

Gitolite/install-to ~/bin

12. Initializing the repository with the public key just copied

Bin/gitolite setup–pk/tmp/

13. The client can replicate the Gitolite-admin library for Gitolite management.

git clone [email protected]:gitolite-admin

The following article will talk about the management of Gitolite

Gitolite Server Setup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.