Installing Git with non-root user account

前端 未结 6 1525
名媛妹妹
名媛妹妹 2020-12-12 20:37

I\'ve already set up a Git repository on GitHub and committed a few changes from my Windows machine.

But tomorrow I\'ll have to work in this repository from a machin

6条回答
  •  失恋的感觉
    2020-12-12 21:03

    To install git and dependencies from source the following maybe useful.

    Replace with the location you are installing your non-root apps and consider checking for latest versions of source code.

    wget https://curl.haxx.se/download/curl-7.47.1.tar.gz
    tar -xf curl-7.47.1.tar.gz
    mkdir 
    cd curl-7.47.1
    ./configure --prefix=
    make
    make install
    
    wget http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz
    tar -xf expat-2.1.0.tar.gz
    mkdir 
    cd expat-2.1.0
    ./configure --prefix=
    make
    make install
    
    wget https://github.com/git/git/archive/v2.6.4.tar.gz
    tar -xf v2.6.4
    mkdir 
    cd git-2.6.4
    make configure
    ./configure --prefix=/git --with-curl=/curl --with-expat=/expat
    make
    make install
    

提交回复
热议问题