Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve fatal: unable to access, Received HTTP code 400 from proxy after CONNECT

Tags:

git

github

When I try to get a pull form master using git pull origin master I get the following proxy error.

fatal: unable to access 'https://github.com/xxx/xxx.git/': Received HTTP code 400 from proxy after CONNECT

I'm working on a macOS Mojave and I haven't configured any proxy servers either. Anyone know how to fix this issue?

like image 961
Azkar Moulana Avatar asked Dec 12 '25 01:12

Azkar Moulana


2 Answers

just run rm ~/.gitconfig

Maybe try instead:

git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset core.gitproxy

Check with git config -l --show-origin|grep -i proxy, to be sure you didn't missed anything.

The point is: that would be less "destructive" than rm ~/.gitconfig.

like image 169
VonC Avatar answered Dec 14 '25 15:12

VonC


Because of some proxy configurations this occurs, to reset all the configurations just run rm ~/.gitconfig and start the terminal again.

like image 32
Azkar Moulana Avatar answered Dec 14 '25 15:12

Azkar Moulana



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!