本帖最后由 renxiao2003 于 2010-07-26 12:29 编辑 公司最近准备启用git来管理公司项目,在CTO张头的带领下,历经挫折,终于完成了git服务器的配置工作。在使用git之前,大家首先要明确几个概念:git服务器、git客户端和git服务器管理员。本文中使用ubuntu当作git服务器,pcA和pcB分别作为服务器管理员和git客户端。通常,git服务器上需要安装OpenSSH server、git、gitosis和Apache2(如果想使用gitweb的话)。 本文将主要介绍...
by renxiao2003 - 软件配置管理 - 2010-07-26 12:28:34 阅读(3932) 回复(0)
作者: aibss 出自: http://www.linuxdiyf.com 软件准备:ubuntu server 8.04 ,winscp ,vmware,webmin 时间1小时 今天心血来潮搭建了下 首先安装ubuntu server ,安装这个也是比较偷懒 不用自己在去配环境了, 、 在虚拟机上安装ubuntu server 这个比较方便。引导还是比较人性化的,按照一步步做就可以了,中间有套件选择。选下lamp。然后是输入自己的帐号和密码。 大约20分钟就安装结束了 安装结束后看到了熟悉的linux登陆画面。...
gitHub is awesome, really awesome for open source projects and for projects with multiple people. In fact, if you use your own git setup for an open source project, you are most likely hindering your project’s progress and wasting your time. On the other side of the coin, if you are a lone shark and you don’t need gitHub’s awesome social features, I have news for you: you can host your own ...
1 安装RadRails IDE,需要java支持,请先安装好jdk,这里就不罗嗦了。 sudo -i cd /opt wget -c http://nchc.dl.sourceforge.net/sourceforge/radrails/radrails-0.7.0-linux-gtk.tar.gz tar xvzf radrails-0.7.0-linux-gtk.tar.gz rm radrails-0.7.0-linux-gtk.tar.gz vim /usr/share/applications/radrails.desktop --------------------------------------------------------------------- -[Desktop Entry] -Name=Rad...
想不到通过http来做git clone竟然是这么简单: Say wants to do below clone: git clone git+ssh://git.fedorahosted.org/git/anaconda.git 如果通过http,则 export http_proxy=http://ipaddr:port git clone http://git.fedorahosted.org/git/anaconda.git That's all! 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8059/showart_1713921.html
by tangke 2009-10-23 先穿插说一下git自己的网络传输协议,通过git://协议进行代码clone, pull,fetch等操作。 1.在上游版本发布的机器上面使用git daemon git daemon --base-path=/var/cache/git/ --export-all 这个地方需要注意一下,不能使用/var/cache/git,必须使用/var/cache/git/目录 当然用户也可以自己使用service方式实现开机自启动. Initialized empty git repository in /tmp/test/desktoploongson/.git/ remote: C...
by tangke 2009-10-22 1.安装gitweb apt-get install gitweb 2.加载模块 a2enmod rewrite 3.配置文件 $vi /etc/apache2/sites-available/gitweb.conf serverName 172.16.28.199 DocumentRoot /usr/share/gitweb/ SetEnv gitWEB_CONFIG /etc/gitweb.conf Options ExecCGI Addhandler cgi-script cgi DirectoryIndex gitweb.cgi RewriteEngine On RewriteRule ^/$...
by tangke 2009-10-21 这里我们就忽略如何安装apache2,git,git-core,curl这些软件的操作了, 因为这些软件在debian上面都可以通过apt-get install 来进行安装. 1.加载模块 需启动apache的dav_fs和dav模組a2enmod dav_fs a2enmod dav 2.配置文件 $vim /etc/apache2/sites-available/git.conf 172.16.28.109:80> serverName 172.16.28.109 DocumentRoot /var/cache/git ...
by tangke 2009-10-21 1. create the server repo $cd ~/Test/git-server $mkdir var/git/project/ -pv $cd var/git/project/ $git --bare init 2.create the client repo $cd ~/Test/ $mkdir client -pv $cd client $git init $echo "hello world" > hello.c $git add hello.c $git commit -m "init import" [master (root-commit) 3a8e33e] fixed 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 he...