Firstly - Check Check if U have global .gitconfig file 检查是否有全局 .gitconfig 文件 Usually global .gitconfig will be created in directory /Users/yourAccountName 通常情况下全局的.gitconfig文件会在文件夹 /Users/你的用户名下 Such as mine, it is being /Users/robingao 我的是/Users/rob…
# 设置ss git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' # 设置代理 git config --global https.proxy http://127.0.0.1:1080 git config --global https.proxy https://127.0.0.1:1080 # 取消代理 git c…
设置代理 git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' 取消代理 git config --global --unset http.proxy git config --global --unset https.proxy 还有针对 github.com 的单独配置: #只对github.com git confi…
禁止非sever_name指定域名访问,将其访问指向默认站点: 设置非server_name指定域名访问,将该访问重写到test.1comserver { listen 80 default; rewrite ^(.*) http://test1.com permanent;}server { listen 80 ; server_name test1.com; location / { root html; index index.html; }}server { listen 80; ser…
# 设置socket5代理 git config --global http.proxy 'socks5://127.0.0.1:1087' git config --global https.proxy 'socks5://127.0.0.1:1087' # 设置HTTP/HTTPS代理 git config --global http.proxy http://127.0.0.1:1087 git config --global https.proxy https://127.0.0.1:1…
git 设置代理: git config --global git 取消代理: git config --global --unset http.proxy 针对 github.com 设置代理: git config --global  取消 github.com 代理: git config --global --unset http.https://github.com.proxy 注意:设置代理需要科(翻)学(墙)上网,后面的端口号(1080)要和科(翻)学(墙)上网 Http代理监听端…
设置代理: git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' 查看代理: git config --global --get http.proxy git config --global --get https.proxy 取消代理: git config --global --unset http.proxy git…
设置代理 git config --global http.proxy http://proxy.com:1234 git config --global https.proxy http://proxy.com:1234 git config --global http.sslverify false 禁用代理 git config --global --unset http.proxy git config --global --unset https.proxy 检查当前代理 git co…
git 设置代理:(因为网络有时太慢,需要用到 ss 代理..) git config --global http.proxy http://127.0.0.1:1080 取消 代理 git config --global --unset http.proxy…
git config --global https.proxy http://127.0.0.1:1080       git config --global https.proxy https://127.0.0.1:1080       git config --global --unset http.proxy       git config --global --unset https.proxy           npm config delete proxy   git conf…