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