[Solved] gnutls_handshake() failed: The TLS connection was non-properly terminated

Error

chiyukunpeng@chiyukunpeng: ~$ git clone --recursive https://github.com/mrnabati/CenterFusion.git
is being cloned to 'CenterFusion'...
fatal: unable to access 'https://github.com/mrnabati/CenterFusion.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.

Solution

# check proxy
chiyukunpeng@chiyukunpeng: ~$ git config --global -l
http.postbuffer=524288000
http.proxy=http://proxy.server.com:8080
http.proxy=http://127.0.0.1

# Delete proxy variables one by one
chiyukunpeng@chiyukunpeng: ~$ git config --global  --unset http.proxy http://127.0.0.1
chiyukunpeng@chiyukunpeng: ~$ git config --global  --unset http.proxy http://proxy.server.com:8080
chiyukunpeng@chiyukunpeng: ~$ git config --global  --unset http.postbuffer

Read More: