1. 程式人生 > >糾錯: git push error “fatal: Unable to find remote helper for 'https'"

糾錯: git push error “fatal: Unable to find remote helper for 'https'"

When I upload my local code to Github, I meet the problem of “git push error “fatal: Unable to find remote helper for ‘https’”“.
It is because my system can not find the ‘git-remote-https’ file. I search it and find it is located in ‘/usr/lib/git-core/git-remote-https’. So I add its directory in PATH using the following command:

sudo gedit ~/.bashrc

Add the command line “PATH=$PATH:/usr/lib/git-core” at the end of the file.
You can test you path with the command :

$ echo $PATH

You’ll see

/home/sherrie/bin:/home/sherrie/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda/bin:/usr/
local/libexec/git-core:/usr/lib/git-core

Congrats, and you’ll make it!