1.设置home路径:
D:\Program Files (x86)\Git\etc 目录下的 profile文件
最后面追加:
# set Project Path
proj="D:\cdoe\gitcode"
cd $proj
2.设置代理\取消代理:
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
#socks5
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'