Dave
Dave

Reputation: 7379

git: access git using proxy with .pac file

I have a pac file to access to proxy, I am using bitbucket.

http://xxx.xxx/xxx/proxy.pac same user of machine logged and password

I need git access to the repository.

Clone command is: git clone https://[email protected]/test/test.git

How can I configure it?

Upvotes: 2

Views: 1286

Answers (1)

VonC
VonC

Reputation: 1328182

Compared to my 2016 answer, I now (June 2021) uses genotrance/px

That means your HTTPS_PROXY becomes http://127.0.0.1:3128

From there, you can access internet, and your BitBucket repository.


Note: the PR 177 "feat: process noproxy rules even with MODE_CONFIG_PAC" is being implemented (Q1 2023)

When using PX in MODE_CONFIG_PAC, noproxy rules are ignored.

This commit indicates required changes in order to have the expected behavior.

Upvotes: 0

Related Questions