I want to do all the gitconfig proxy settings in a wildcard format.

Asked 1 years ago, Updated 1 years ago, 114 views

I am using Git for Windows with Windows server.
I would like to set the proxy server to use only access to a specific repository.

How to change the proxy settings for git by repository

I have referred to , but it is difficult to set up similar URLs one by one, so
https://*.example.com/*
Is it impossible to set it as a wildcard like this?

git proxy

2022-09-30 14:40

1 Answers

In git-config section (the link appears to be broken and cannot fly to the affected area)

https://*.example.com/ for example would match https://foo.example.com/, but not https://foo.bar.example.com/.

said he.

 [http]
    proxy=http://proxy.acme.com:8080

[http "http://*.example.com/"]
    proxy= 

If so, I can write it.


2022-09-30 14:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.