Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能不能做成一个 https proxy #28

Closed
norci opened this issue Jan 24, 2021 · 2 comments
Closed

能不能做成一个 https proxy #28

norci opened this issue Jan 24, 2021 · 2 comments

Comments

@norci
Copy link

norci commented Jan 24, 2021

就是按这方法设置成代理:

git config --global https.proxy https://ghproxy.com

好像 https proxy 不能看到 URI ?

@zwc456baby
Copy link

git config --global url."https://pd.zwc365.com/seturl/https://github.com/".insteadOf https://github.com/

上面这里是一个示例代理,修改一下就可以实现你所说的 https proxy 了。例如修改成这样:

git config --global url."https://gh.api.99988866.xyz/https://github.com/".insteadOf https://github.com/

执行上面这样的配置后,所有 github.com 的项目,都会走代理 gh.api.99988866.xyz

@norci
Copy link
Author

norci commented Feb 5, 2021

it works.
Many thanks!

@norci norci closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants