分享

Linux下git安装配置

 Frank__Library 2016-01-26

环境:

Linux PBCS-IN-LIB 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

git下载地址:https://www./pub/software/scm/git/

安装:

[plain] view plain copy
在CODE上查看代码片派生到我的代码片
  1. tar -xzf  git-2.1.3.tar.gz  
  2. cd git-2.1.3  
  3. ./configure -prefix=/usr/local/git --with-curl  --with-expat  
  4. make && make install  


修改参数

修改/etc/profile,在PATH中加入git路径,并执行source /etc/profile

[plain] view plain copy
在CODE上查看代码片派生到我的代码片
  1. GIT_HOME=/usr/local/git  
  2. PATH=$PATH:$GIT_HOME/bin:$GIT_HOME/libexec/git-core  
  3. export PATH GIT_HOME  


检查

git --version


git-svn   安装需要依赖subversion-perl

1.Subversion的版本信息

[plain] view plain copy
在CODE上查看代码片派生到我的代码片
  1. # rpm -qf `which svn`  
  2. subversion-1.4.2-4.el5_3.1  

2.检查操作系统信息

[plain] view plain copy
在CODE上查看代码片派生到我的代码片
  1. [root@PBCS-IN-LIB git]# uname -i  
  2. x86_64  

3.查找rpm包,安装rpm

[plain] view plain copy
在CODE上查看代码片派生到我的代码片
  1. rpm -ivh subversion-perl-1.4.2-4.el5_3.1.x86_64.rpm  


Gitweb安装


安装lighttpd ,http://www.下载源码进行安装

[plain] view plain copy
在CODE上查看代码片派生到我的代码片
  1. ./configure --prefix=/usr/local/lighttpd   
[plain] view plain copy
在CODE上查看代码片派生到我的代码片
  1. make && make install  

启动

git instaweb --httpd=/usr/local/lighttpd/sbin/lighttpd





    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多