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

Error

[email protected]: ~$ 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
[email protected]: ~$ 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
[email protected]: ~$ git config --global  --unset http.proxy http://127.0.0.1
[email protected]: ~$ git config --global  --unset http.proxy http://proxy.server.com:8080
[email protected]: ~$ git config --global  --unset http.postbuffer


Read More: