Installing Git with non-root user account

前端 未结 6 1524
名媛妹妹
名媛妹妹 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:15

    This is what I ended up doing, the main trick being the make flags:

    wget -O git.tar.gz https://github.com/git/git/archive/v2.17.0.tar.gz
    tar zxf git.tar.gz
    mv git-2.17.0 git
    cd git
    make configure
    ./configure --prefix=`pwd` --with-curl --with-expat
    # ./configure --prefix=`pwd`
    # Make flags from https://public-inbox.org/git/CAP8UFD2gKTourXUdB_9_FZ3AEECTDc1Fx1NFKzeaTZDWHC3jxA@mail.gmail.com/
    make NO_GETTEXT=Nope NO_TCLTK=Nope
    make install NO_GETTEXT=Nope NO_TCLTK=Nope
    

    Credits:

    1. 79E09796's answer above was a good tip, but didn't work for my case on Cloudways and did not require compiling curl and expat.

    2. A random email record I found on the internet: https://public-inbox.org/git/CAP8UFD2gKTourXUdB_9_FZ3AEECTDc1Fx1NFKzeaTZDWHC3jxA@mail.gmail.com/

提交回复
热议问题