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
简言之,
- 在.git目录下创建description文件,内容为一行文本,html格式标记无效
- 在.git目录下创建cloneurl文件,一行一个url
- 在.git目录下的config文件中设置owner,如下:
[gitweb] owner = Your Name <youremail>