Reputation: 28989
I am using BitBucket. I have a repository installed on my server with
git clone https://******@bitbucket.org/******/myproject.git
I was able to pull and push from my server to the bitbucket.org repository.
Now in the past days there was a warning when I pulled, that the IP of bitbucket will change on 01.08.2018.
Today I tried to push to the bitbucket repository and got the following error message:
git pull origin master
fatal: unable to access 'https://******@bitbucket.org/******/myproject.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
Is there an easy way hot wo fix it? Or do I have to clone the repository again to a new folder and delete the old version?
Upvotes: 7
Views: 37108
Reputation: 1964
I tried
git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy
, but the problem still exists. The solution
git config --global http.sslVerify false
from this blog solved my problem in the end.
Upvotes: 5
Reputation: 779
For anyone facing this issue after 2020, Use ipv4 by using "--ipv4" or "-4" flag in your git command.
ex: git clone <git url> -4
I am not sure why this happens but sometimes IPV6 connections are not able to establish a TLS connection but IPV4 connections have no issues.
Upvotes: 15
Reputation: 1
git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy
Upvotes: 0
Reputation: 5640
If you're connecting over IPv6, there was an incident just a little while ago: https://status.bitbucket.org/incidents/vhwmrlvp1nh5
Upvotes: 3
Reputation: 1
You need to update origin for your repository. They changed the URL.
Upvotes: -1