I have a few github repos and they have been working fine for the last few months.
However, a few days ago I started getting a strange error when trying to push
and pull
I built a package that re-pointed the environmental variable LD_LIBRARY_PATH in my ~/.bash_profile
. This broke my git; I got the aforementioned libcurl error due to gits dependency on curl:
[user@host folder]$ git push
fatal: unable to access 'https://x-access-token:67bada156da713b46d4d64fe37309cb9c5856717@github.com/project/repository.git/': Protocol https not supported or disabled in libcurl
The solution is to fix LD_LIBRARY_PATH as you run git with an alias:
# Fix problem with libcurl
alias git="LD_LIBRARY_PATH=/usr/local/lib git"
export LD_LIBRARY_PATH=/opt/project/lib
And then...
[user@host folder]$ source ~/.bash_profile
[user@host folder]$ git push
Counting objects: 24, done.
Delta compression using up to 32 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (13/13), 1.57 KiB | 0 bytes/s, done.
Total 13 (delta 5), reused 0 (delta 0)
remote: Resolving deltas: 100% (5/5), completed with 5 local objects.
To https://x-access-token:67bada156da713b46d4d64fe37309cb9c5856717@github.com/project/repository.git/
676a842..eb37cb9 enhance-0052 -> enhance-0052
I had the same behaviour. I don't know why but I solved it by changing the Repo orign to ssh/git protocol
The first answer is correct though in my case it was not PureData and I even couldn't found what program was conflicting. So I searched the libcurl.dll in C drive and cut it from SysWOW64 folder and pasted on desktop. Looked into its details and it was by some "shenzhen moyea software" which on google led me to youtube converted once installed by my lil bro. Anyways removing the file made the git working again.
if it happens in Windows, start the Git terminal as administrator.