Gitosis Configuring a git server

Source: Internet
Author: User

Server-side configuration


#创建用户

Useradd-m git

#安装gitosis

Apt-get Install Python-setuptools Installation Tool

git clone https://github.com/res0nat0r/gitosis

CD gitosis

Python setup.py Install


Placing the public key of the client management user in any directory on the server

Sudo-h-u git gitosis-init < public key absolute path

The repositories directory and the Gitosis-admin.git warehouse under it are automatically generated under/home/git, and the user who has the Id_rsa.pub private key by default is the administrator.

chmod 755/home/git/repositories/gitosis-admin.git/hooks/post-update


This article is from "Xiao Qiang" blog, please be sure to keep this source http://3946308.blog.51cto.com/3936308/1708560

Gitosis Configuring a git server

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: info-contact@alibabacloud.com 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.