How to install Gitweb on Apache implement browser access git server

Source: Internet
Author: User
Tags linux

Build git server (build git server with Apache on Linux), can checkout, pull, push, create a new demand--walk on the road or in the car, waiting for people or in line, if you want to on the tablet computer or mobile phone to browse code library code, What do we do?

At this time Gitweb shiny debut! Gitweb is a CGI program that supports GIT, and with it you can easily browser the code in a git code base.

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/

Let's share how to install and configure Gitweb.

Environment to prepare: Linux+apache

Installation and configuration steps:

1. Install Gitweb

Yum Install Gitweb

2. Modify Git.conf

Vi/etc/httpd/conf.d/git.conf

Change "Alias/git/var/www/git" to "Alias/gitweb/var/www/git"

3. Modify Gitweb.conf

Vi/etc/gitweb.conf

$projectroot = "/home/git"

Set $projectroot as the folder where the GIT code base resides

4. Use the browser to access Gitweb, such as: Http://git.cnblogs.com/gitweb, the effect of the following figure:

5. The problems that exist

The code in some projects shows that changing rows will show \ r.

Author: cnblogs Dudu

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.