关于代码服务器

SSH 版本:

libvirt git clone [email protected]:/home/git/libvirt
linux git clone [email protected]:/home/git/linux
qemu-xen-4.0-testing git clone [email protected]:/home/git/qemu-xen-4.0-testing
qemu-xen-4.1-testing git clone [email protected]:/home/git/qemu-xen-4.1-testing
qemu-xen-unstable git clone [email protected]:/home/git/qemu-xen-unstable

win-pvdrivers hg clone ssh://[email protected]//home/hg/win-pvdrivers
xen-4.0-testing.hg hg clone ssh://[email protected]//home/hg/xen-4.0-testing.hg
xen-4.1-testing.hg hg clone ssh://[email protected]//home/hg/xen-4.1-testing.hg
xen-unstable.hg hg clone ssh://[email protected]//home/hg/xen-unstable.hg





HTTP:

下载代码:

Mercurial
浏览器访问  http://10.166.29.43/hg

win-pvdrivers hg clone http://10.166.29.43/hg/win-pvdrivers
xen-4.0-testing.hg hg clone http://10.166.29.43/hg/xen-4.0-testing.hg
xen-4.1-testing.hg hg clone http://10.166.29.43/hg/xen-4.1-testing.hg
xen-unstable.hg hg clone http://10.166.29.43/hg/xen-unstable.hg



Git
浏览器访问  http://10.166.29.43/gitweb

libvirt git clone http://10.166.29.43/git/libvirt.git
linux git clone http://10.166.29.43/git/linux.git
qemu-xen-4.0-testing git clone http://10.166.29.43/git/qemu-xen-4.0-testing
qemu-xen-4.1-testing git clone http://10.166.29.43/git/qemu-xen-4.1-testing
qemu-xen-unstable git clone http://10.166.29.43/git/qemu-xen-unstable
kvm (官网异常待下载)


服务器管理备注:

Mercurial 仓库根目录位于 /home/repos/hg
Git 仓库根目录位于 /var/www/git

新增Mercurial项目:
进入Mercurial 仓库根目录,直接hg clone 下来即可,Apache自动会托管项目。

新增Git项目:
进入Git 仓库根目录,使用git clone --bare http://xxx.org/xxproject.git xxproject.git 命令, 只克隆项目历史版本
之后必须更新服务器信息,通知HTTP服务器有项目新增。方法是:进入xxproject.git目录,使用命令 git update-server-info
(当已有项目有更新或同步时,也需要执行此命令)

你可能感兴趣的:(服务器)