Ubuntu 12.04 git Server

Source: Internet
Author: User

1. Install git:

Sudo apt-Get install Git-core Git-Doc

 

2. Create gitolite User:

Sudo addgroup gitolite
Sudo adduser-disabled-password-home/gitolite-ingroup gitolite

 

3. Install gitolite:

Sudo apt-get-y install gitolite

 

4. Setup gitolite:

Sudo usermod-a-g gitolite www-Data
Sudo service apache2 restart

Sudo Su-gitolite

Gl-Setup/tmp/your-username-goes-here.pub

 

5. Edit. Gitolite. RC:

$ Repo_umask = 0027

 

6. Manage gitolite:

# From Your Local Machine
Git clone gitolite@git.server: gitolite-admin.git

 

# From Your Local Machine
CD gitolite-Admin
Emacs CONF/gitolite. conf
# Change:
Repo Testing
RW + = @ All
R = daemon
Testing "owner" = "Test repo"

 

Git add CONF/gitolite. conf
Git commit-m "enabled gitweb and git-daemon export for testing repo"
Git push

7. Install gitweb:

Sudo apt-Get install highlight gitweb

Sudo Emacs/etc/gitweb. conf
# Change $ projectroot to/home/gitolite/Repositories
# Change $ projects_list to/home/gitolite/projects. List

 

8. Add User:

Put "account-name.put""Gitolite-admin/keypair"

Edit"Conf/gitolite. conf ", change

@ Developer root, account-name

 

* Reference:

http://blog.airmio.com/2012/05/install-git-server-on-ubuntu-12/

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.