现在的位置: 首页 > 综合 > 正文

下载编译最新Git

2013年09月04日 ⁄ 综合 ⁄ 共 407字 ⁄ 字号 评论关闭
  • Clone the latest git repository
     git clone https://github.com/git/git.git 
  • Install all prerequisite packages needed to build git from source files(assuming you already installed GNU tool chain with GCC compiler, make, etc.)
     sudo apt-get install gettext zlib1g-dev asciidoc libcurl4-openssl-dev 
  • Enter the clone git directory
    cd git 
  • Configure and compile
    make configure 
    ./configure --prefix=/usr
    make all doc 
  • Install as super user
    sudo make install install-doc install-html 

抱歉!评论已关闭.