You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
424 B
18 lines
424 B
#!/bin/sh
|
|
|
|
proxy='socks5h://proxy.sigkill.top:10086'
|
|
|
|
case $1 in
|
|
on)
|
|
git config --global http.proxy $proxy
|
|
git config --global https.proxy $proxy
|
|
;;
|
|
off)
|
|
git config --global --unset http.proxy
|
|
git config --global --unset https.proxy
|
|
;;
|
|
*)
|
|
echo "http : $(git config --get http.proxy)"
|
|
echo "https : $(git config --get https.proxy)"
|
|
;;
|
|
esac
|
|
|