cdxcc

文章 分类 评论
14 1 5

站点介绍

这里是站点介绍...

git使用代理

cdxcc 2022-12-30 7 0条评论 默认分类 git

首页 / 正文

一、使用代理

  • 代理无用户密码
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 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://username:password@proxy.baidu.com:8080"

账号和密码中间使用:分开,账号密码后使用@符号进行连接地址url

二、取消代理

如果不需要使用代理

git config --global --unset http.proxy
git config --global --unset https.proxy

建议

不建议将代理设置为全局,应该按需设置代理

评论(0)

最新评论

  • cdxcc

    @chris 1111

  • chris

    @chris sorry

  • chris

    @chris world

  • chris

    hello

  • Typecho

    欢迎加入 Typecho 大家族

日历

2023年03月

   1234
567891011
12131415161718
19202122232425
262728293031 

友情链接

文章目录

推荐关键字: linux docker git redis 笔记 openwrt spring boot ubuntu dns vps