Powershell中给Git设置代理
Powershell中给Git设置代理
为了方便我们使用快捷命令:
1 | notepad $PROFILE |
如果报错:

我们就先执行:
1 | New-Item -Path (Split-Path $PROFILE) -ItemType Directory -Force |
接下来在文档中输入:
1 | # 开启git代理 |
然后回到Powershell中:
1 | . $PROFILE |
无编译错误
使用:
1 | gp-on # 开启代理 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 zhangxixi的博客!


