前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >gitweb 配置概述

gitweb 配置概述

作者头像
xuyaowen
发布2020-12-30 15:00:08
5210
发布2020-12-30 15:00:08
举报
文章被收录于专栏:XUYAOWEN的专栏

Git 可以使用 instaweb 生成项目浏览;

本地配置:

代码语言:javascript
复制
cat .git/config| tail -n 4
[instaweb]
    local = false
    httpd = webrick
    port = 9988

命令说明:

代码语言:javascript
复制
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 

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-05-22 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档