Git Tips: 获取特定版本的某一文件
获取特定版本的某一文件
git checkout <revision> <paths>
例如
git co 345a7c src/hello.c
gitweb 是cgi, Nginx 只支持FastCGI, 所以需要加个wrapper
下面是网上搜回来的资料,放在这里备忘:
Slicehost Forum – Nginx + SCM
cactuswax.net gitweb helper scripts
NginxSimpleCGI
等晚上做好了再回来报告
————————
装好了,很顺利
不过后来发现有个 gitserve 更简单,用python 做的http server 包在gitweb.cgi外面,用起来感觉和hg serve一样方便了
Chris 04:55 on October 27, 2008 Permalink
呃,机器人这个主题够素的……
文章的标题尺寸再大点吧,要不整个 blog 看起来太平了。
Chris 12:55 on October 27, 2008 Permalink
呃,机器人这个主题够素的……
文章的标题尺寸再大点吧,要不整个 blog 看起来太平了。
number5 10:03 on October 27, 2008 Permalink
@Chris
现在没问题了吧
number5 18:03 on October 27, 2008 Permalink
@Chris
现在没问题了吧
Chris 05:45 on October 31, 2008 Permalink
嗯,这样就清楚多了 :)
Chris 13:45 on October 31, 2008 Permalink
嗯,这样就清楚多了 :)