Skip to content

Commit bfaaaf7

Browse files
authored
Initial commit
1 parent d6f2078 commit bfaaaf7

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

git_proxy_toggle.bat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
git config --global http.proxy | Findstr /c:"http://192.168.10.10:3128/" && (
2+
cls
3+
echo set_proxy_off
4+
echo.
5+
git config --global --unset http.proxy
6+
echo successfully set
7+
echo.
8+
) || (
9+
cls
10+
echo set_proxy_on
11+
echo.
12+
git config --global http.proxy http://192.168.10.10:3128/
13+
echo successfully set
14+
echo.
15+
)
16+
@pause

0 commit comments

Comments
 (0)