Set Git proxy
I was using ssh to clone a repo from Github on wsl, and http proxy not work.
Work with ssh config
edit file ~/.ssh/config
1 | Host github.com |
Work with http/https
update ~/.gitconfig
1 | [http] |
Notes:
If you only need access github by the way of ssh+git, you needn’t set any proxy in ~/.gitconfig and run git config –global http.proxy … and similar commands at all
Set Git proxy