Git and gitolite clients are implicitly transferred in centOS: Java code $ ssh-keygen-trsa-f ~ /. Ssh/admin $ scp ~ /. Ssh/admin. pubserver:/tmp/admin.pubwww.2cto.com # save the public key to the server for future use. the server is the server's I... git and gitolite clients are implicitly transferred in centOS: Java code $ ssh-keygen-t rsa-f ~ /. Ssh/admin $ scp ~ /. Ssh/admin. pub server:/tmp/admin. pub www.2cto.com # save the public key to the server for future use. the server uploads the adminpub file to the/tmp directory server for the server IP address: install git and check whether the version is installed successfully. java code $ rpm-Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm $ Yum-y install python-setuptools $ yum-y install git $ git-version www.2cto.com to create users and directories, and set the corresponding permissions for Java code $ mkdir-p/data/git $ groupadd git $ useradd-g git-d/data/git/-s/bin/bash git $ passwd git $ chown-R git: git/data/git $ chmod-R 2755/data/git/clone gitolite (Jiang Xin version) under the user home directory just created) java code $ su git $ cd $ HOME $ git clone git: // github.com/ossxp-com/gitolite.git $ exit create a directory and install it. java code $ cd/data/git/$ mkdir-p/usr/local/share/gitolite/conf/usr/local/share/gitolite/hooks $ cd gitolite/src/$. /gl-system-install/usr/local/bin/usr/local/share/gitolite/conf/usr/local/share/gitolite/hooks run the installation script on the dedicated account. java code $ su-git $ gl-setup/tmp/admin. pub client: Java code $ git clone git @ server: gitolite-admin
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