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