寰智博客

  1. 首页
  2. 技术教程
  3. 正文

Git 使用 SSR 代理

2021年6月16日 1229点热度 2人点赞 0条评论

最近需要对公司的进程守护器进行一些修改。无奈发现由于电脑重装过系统,所以系统中原有的C++ 的包组件都丢失不见了。

所以需要重新从github 拉取最新的 vcpkg 代码并进行编译安装。

由于众所周知周知的 原因,国内使用 github 慢的和蜗牛一样。这里记录一下如何使用 最简单的 ssr 扶墙下载代码。

 

1.SSR 开启 本地代理服务,端口号默认 1080

2.在命令行下设置 git 使用全局代理


git config --global https.proxy http://127.0.0.1:1080
git config --global http.proxy http://127.0.0.1:1080

3.当不需要使用 代理时,使用下面的命令避免尴尬


git config --global --unset http.proxy
git config --global --unset https.proxy
标签: 暂无
最后更新:2021年6月16日

SudemQaQ

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 blog.szhcloud.cn 寰智博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

苏ICP备16064625号-1

本站使用 又拍云 Logo 提供CDN加速/云存储服务