0

I am trying to clone some repo from GitHub, but I am getting error like:

fatal: unable to access 'https://github.com/some/thing.git/': Received HTTP code 403 from proxy after CONNECT

I am behind corporate proxy, but I set it already in .gitconfig.

This is inside my .gitconfig:

[http]
    proxy = http://something.com:80

[https]
    proxy = http://something.com:80

Do you have any idea?

Biffen
  • 5,791
  • 5
  • 29
  • 34
Kali26
  • 81
  • 1
  • 7

1 Answers1

0

Does your proxy needs credentials? if yes, add your credentials in proxy URL. You can try using running this command in cmd.

git config --global https.proxy http://username:password@host:port

This command is going to update your .gitconfig file as below.

[http]
proxy = http://username:password@host:port

[https]
proxy = http://username:password@host:port
Chandan Kumar
  • 755
  • 6
  • 15