step 1:
apt-get install gitweb ....
step 2:
hanyh@hanyh-laptop:~/workspace/git$ more /etc/gitweb.conf
# path to git projects (<project>.git)
#$projectroot = "/var/cache/git";
$projectroot = "/home/hanyh/workspace/git";
# directory to use for temp files
$git_temp = "/tmp";
# target of the home link on top of all pages
#$home_link = $my_uri || "/";
# html text to include at home page
$home_text = "indextext.html";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = $projectroot;
# stylesheet to use
$stylesheet = "/gitweb/media/gitweb.css";
# logo to use
$logo = "/gitweb/media/git-logo.png";
# the 'favicon'
$favicon = "/gitweb/media/git-favicon.png";
step 3:
hanyh@hanyh-laptop:~/workspace/git$ more /etc/apache2/conf.d/gitweb
RewriteEngine on
RewriteRule ^/gitweb/([a-zA-Z0-9_\-]+\.git)/?(\?.*)?$ /cgi-bin/gitweb.cgi/$1 [L,PT]
Alias /gitweb /home/hanyh/workspace/git
<Directory /home/hanyh/workspace/git>
DirectoryIndex /cgi-bin/gitweb.cgi
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
allow from all
</Directory>
step 4:
sudo a2enmod rewrite
done!
分享到:
相关推荐
自己从零开始搭建git + gitweb + gerrit服务器 软硬件环境 物理机:Windows10 64位 VMware版本:VMware Workstation 12 Ubuntu版本:ubuntu-14.04-server-amd64.iso
gitweb-theme, 一个gitweb的替代主题,强烈受GitHub启发 gitweb主题这是 gitweb ( 测试的git网页版本 2.0.4 )的备选主题。 它是强大的,由GitHub激发。在 kogakure.github.com/gitweb-theme 提供全面的屏幕截图。...
。。。
。。。
gitweb.conf配置文件,支持highlight插件。
本文档详细介绍了如何在linux系统下安装ldap、gerrit、gitweb的安装流程。还包括gerrit的ldap认证配置,gerrit+gitweb集成化安装部署流程。
git是代码管理中常使用的工具,然后纯属的git查看代码有期极限性,在实际企业开发中都会辅助gitweb以便以查看代码,此问题就是基于此缘故而编写,经实际操作验证,是可行的。
gitweb:Gitweb提供了git版本库的图形化web浏览功能,能看代码库,提交日志等服务器操作系统:ubuntu14.04gerrit所用包:gerrit-2.10.war,此版本必须要用jdk7以上,本人用了jdk7.1.ubuntu服务器安装git2.ubuntu...
gitweb-theme:gitweb的替代主题,受到GitHub的强烈启发
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
支持trac server和gitweb的apache2 default配置文件。
.official-只能由GitWeb的审核团队使用! 用于子网站/子索引-标准多用例后缀 .app-需要用作Device Mod插件上的信息索引! 用于子网站/子索引-标准多用例后缀 .wiki-推荐用于基于信息的索引! .craft-标准的多用例...
群英汇Gitolite_构建_Git_服务器,apache+配置+gitweb(git+http匿名访问智能clone不能push)等,文件为pdf格式,需要的可以下载。
apache+配置+gitweb(git+http匿名访问智能clone不能push
apache 配置git 服务器, 使开发人员能通过http访问git仓库,http,git协议(客户端)只能clone仓库代码,不能写入,写入只能通过ssh协议来提交代码。
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
gitweb 用于更好地合并 Github 的 Web 后端。 用法 将webmerge.js安装为 TamperMonkey 脚本(也可以在 GreaseMonkey 中工作)。 注意 - 服务器将使用您的 Github OAuth 凭据来下拉存储库。 如果您不信任对您的存储...
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装