Why is this git clone command failing?

后端 未结 9 2137
挽巷
挽巷 2021-02-03 23:40

Trying to use the git clone command. My understanding (please correct if wrong) was that in order to host a Git repository you just need a machine running ssh and t

9条回答
  •  庸人自扰
    2021-02-03 23:49

    I solved the problem by adding the following line to my ~/.bashrc file of the remote computer:

    export PATH=$PATH:"/usr/local/bin:/usr/local/git/bin"
    

    The problem was that $PATH did not include /usr/local/git/bin for non-interactive sessions. The addition to ~/.bashrc corrected that problem.

提交回复
热议问题