对git设置代理
临时设置代理
git -c http.proxy=http://127.0.0.1:7890 xxxxx_git命令
例如:
git -c http.proxy=http://127.0.0.1:7890 push -u origin master -f
1
2
3
2
3
设置长期代理
git config --global http.proxy "http://127.0.0.1:7890"
git config --global https.proxy "http://127.0.0.1:7890"
1
2
2
取消长期代理
git config --global --unset http.proxy
git config --global --unset https.proxy
1
2
2