在centos上搭建Git分布式管理控制系统

来源:岁月联盟 编辑:exp 时间:2011-10-10

 

Git是一个开源的分布式版本控制系统,用以有效、高速的处理从很小到非常大的项目版本管理。

 

安装步骤:

操作系统:centos 5.5

 

安装GIT依赖的包

yum install zlib-devel

yum install openssl-devel

yum install perl

yum install cpio

yum install expat-devel

yum install gettext-devel

 

yum install autoconf

 

安装curl

安装cURL

 

# wget http://curl.haxx.se/download/curl-7.17.1.tar.gz

# tar zxvf curl-7.17.1.tar.gz  //解压

 

#cd curl-7.17.1

# ./configure --prefix=/usr/local/curl

# make

# make install

 

修改ld.so.conf 添加/usr/local/lib

vi /etc/ld.so.conf 添加/usr/local/lib

 

运行idconfig

/sbin/ldconfig

 

安装Git

wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz

tar xzvf git-latest.tar.gz

cd git-2011-10-08

 

autoconf

 

./configure --with-curl=/usr/local/curl

make

make install

 

*************************************安装ok

 

测试:www.2cto.com

终端输入#git

 

相关参数和说明还是很全的

 

使用和搭建版本控制:

可以参考:

 

http://blog.haohtml.com/wp-content/uploads/2011/04/git-tut.pdf

 

http://www.linuxsir.org/main/doc/git/gittutorcn.htm

 



或者下载《git搭建》文档