"Build git+maven+jenkins Continuous integration Environment" [a] build a git server

Source: Internet
Author: User

Use of the system is Ubuntu, so there are a lot of apt-get commands, haha forgive

    • Install git Git-core
    • Create a new Git user, and the user's home directory will be used to store git Repository. This user name is not necessarily called git, can be arbitrarily specified, but git is more commonly used, a look at the role of this account
    • Modify the password
    • Landing
sudo install git git-coreadduser gitpasswd  gitsu git

The above is a git installation

    • Get Gitolite
    • If Python does not install Python
    • Installing Python-setuptools
    • Initializing Gitolite with Public key
git clone https://github.com/sitaramc/gitolitesudoinstall python python-  Setuptoolsgitolite/Install -ln  

The above is Gitolite configuration

So we're done with the GIT server. The public key is generated by this command

Ssh-keygen -t RSA

See/gitolite/config file

[core]repositoryformatversion = 0filemode = Truebare = True[user]email = [email protected]name = git on Zzb-virtualbox

Now, test it.

    • Switch to User
    • Clone down Gitolite-admin
su usergit Clone [email protected]:repositories/gitolite-admin.git

View./config/gitolite.conf file

Repo gitolite-admin    rw+     =   Zzbrepo testing    rw+     =   @all

At this point, the Gitolite configuration is OK

"Build git+maven+jenkins Continuous integration Environment" [a] build 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.