Git 可以使用 instaweb 生成项目浏览;
本地配置:
cat .git/config| tail -n 4
[instaweb]
local = false
httpd = webrick
port = 9988
命令说明:
git instaweb -h
usage: git instaweb [options] (--start | --stop | --restart)
-l, --local only bind on 127.0.0.1
-p, --port ... the port to bind to
-d, --httpd ... the command to launch
-b, --browser ... the browser to launch
-m, --module-path ...
the module path (only needed for apache2)
Action
--stop stop the web server
--start start the web server
--restart restart the web server
命令介绍:https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb
gitweb配置参考:https://git-scm.com/docs/gitweb.conf
命令使用参考:https://git-scm.com/docs/git-instaweb
命令配置:位于.git/gitweb/目录下;建议使用 webrick启动;
保持更新,更多内容请参考cnblogs.com/xuyaowen;
配置项目名为 bar.git:
参考链接:https://bbs.archlinux.org/viewtopic.php?id=61324