`

git & repo安装

阅读更多
git:
1、下载git
http://www.kernel.org/pub/software/scm/git/git-1.7.3.4.tar.gz

2、解压

gzip -d git-1.7.3.tar.gz.gz
tar xvf git-1.7.3.tar.gz

3、安装
  进入安装目录配置安装路径
   ./configure -prefix=/home/admin/git
  编译
    make
  安装
    make install

设置环境变量
  cd
  vi .bashrc
       export PATH=/home/admin/git/bin:/home/admin/git/libexec/git-core:$PATH
  source .bashrc

repo:

  1、mkdir ~/bin

  2、安装
    curl http://android.git.kernel.org/repo >~/bin/repo
    chmod a+x ~/bin/repo
    把它(~/bin)加到PATH环境变量中

  3、配置repo帐户
    git config --gloal user.email="yourmail@xxx.xx"
    git config --gloal user.name="xxx"

  4、初始化repo客户端
    repo init -u git://android.git.kernel.org/platform/manifest.git


   
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics