nx@nx-desktop:~$ git clone https://github.com/AlexeyAB/darknet
Cloning into ‘darknet’…
fatal: unable to access ‘https://github.com/AlexeyAB/darknet/’: gnutls_handshake() failed: The TLS connection was non-properly terminated.
nx@nx-desktop:~$ git config --global http.https://github.com.proxy http://127.0.0.1:7890
nx@nx-desktop:~$ git config --global https.https://github.com.proxy https://127.0.0.1:7890
nx@nx-desktop:~$ git clone https://github.com/AlexeyAB/darknet
Cloning into ‘darknet’…
fatal: unable to access ‘https://github.com/AlexeyAB/darknet/’: Failed to connect to 127.0.0.1 port 7890: Connection refused
查看git配置
nx@nx-desktop:~$ git config --global -l
http.postbuffer=10242880000
http.lowspeedlimit=0
http.lowspeedtime=999999
http.https://github.com.proxy=http://127.0.0.1:7890
https.https://github.com.proxy=https://127.0.0.1:7890