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 protocolFor 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
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
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.lvThe Following User Says Thank You to graudeejs For This Useful Post:? #4 ? May 25th, 2012, 20:05blaize
Quote:Originally Posted by VictorGTThanks 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 ??
?
?
?