读书人

freebsd下安装git(1)

发布时间: 2013-03-17 13:48:31 作者: rapoo

freebsd上安装git(1)

本文转自:???? http://forums.freebsd.org/showthread.php?t=10810

?

?

?

How to setup a Git repository


?

This howto will describe how to setup a Git repository:Dedicated user for Git reposSSH will be used for commitsEnable gitweb for web access (Apache will be used)Anonymous cloning using the Git protocol
For those who don't know what Git is:GitGit (Wikipedia)Revision controlDistributed revision controlComparison of revision control software
You should know how to use Git before reading on.

Install devel/git. Select GITWEB. SVN, P4, and CVS are optional. Deselect them if you don't plan to use them.

Create a git user with uid and gid as 9418:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
Now edit gitweb.cgi:
Code:
Code:
Code:
Code:
Code:
Code:
Code:

?

The Following 13 Users Say Thank You to dennylin93 For This Useful Post:? #2 ? October 21st, 2010, 15:53VictorGT freebsd下安装git(1)
Thanks a lot for this useful article!

I've noticed one problem on my FreeBSD 7.2 - looks like it is better to add one more flag (--detach) to the rc.conf:
Code:
The Following User Says Thank You to VictorGT For This Useful Post:? #3 ? October 21st, 2010, 16:35graudeejs freebsd下安装git(1)
You can use devel/py-gitosis to manage git users.
This way system only needs 1 git user. Other users will be virtual users (authorization with ssh public/private keys)

It is very nice peace of software...
I use gitosis & cgit at git.bsdroot.lvfreebsd下安装git(1)The Following User Says Thank You to graudeejs For This Useful Post:? #4 ? May 25th, 2012, 20:05blaize freebsd下安装git(1)
Quote:Originally Posted by VictorGT freebsd下安装git(1)Thanks a lot for this useful article!

I've noticed one problem on my FreeBSD 7.2 - looks like it is better to add one more flag (--detach) to the rc.conf:
Code:
The Following User Says Thank You to blaize For This Useful Post:

?

? Previous Thread | Next Thread ?

?

?

?

?

读书人网 >操作系统

热点推荐