gitweb配置

gitweb配置

从此处找到权威指导:http://sourceforge.net/apps/trac/sourceforge/wiki/GitWeb%20repository%20browser

  • Create a “description” file in your git repository root, with a brief, one-line description of your repository. This file is treated as plain text, any HTML will be escaped. This will appear in the top section of the gitweb repository landing page.
  • Create a “cloneurl” file in your git repository root, containing one url per line. Use this to display the clone url for your repository. This will appear in the same section as the description line, one url per line.
  • Create a “README.html” file in your git repository root, with arbitrary descriptive content. HTML is allowed, and will be displayed inside a div tag on the gitweb page, in a section below the one with description.
  • Set the owner, by setting a gitweb.owner configuration variable in the “config” file, located in your git repository root. If the “gitweb” section does not exist, create it. The owner setting in the config should look like the sample below (you can use any arbitrary string for owner):
    [gitweb]
        owner = Your Name <youremail>
    

References: http://repo.or.cz/w/alt-git.git?a=blob_plain;f=gitweb/README

简言之,

  1. 在.git目录下创建description文件,内容为一行文本,html格式标记无效
  2. 在.git目录下创建cloneurl文件,一行一个url
  3. 在.git目录下的config文件中设置owner,如下:
    [gitweb]
       owner = Your Name <youremail>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值