当前位置: 首页 > news >正文

下载企业微信最新版惠州seo优化服务

下载企业微信最新版,惠州seo优化服务,保网微商城官网登录,wordpress建网 打不开某些情况下,我们需要通过代理才能访问特定网络环境下的git资源,git支持代理配置, 支持 http(s), SOCKS4/SOCKS5. HTTP(S) HTTP 代理配置格式如下: git config --global http.proxy http://[proxy]:[port]实际环境下, 其实我们大多数情况下,并不需要全部git资源都需要通过代理…

某些情况下,我们需要通过代理才能访问特定网络环境下的git资源,git支持代理配置, 支持 http(s), SOCKS4/SOCKS5.

HTTP(S)

HTTP 代理配置格式如下:

git config --global http.proxy http://[proxy]:[port]

实际环境下, 其实我们大多数情况下,并不需要全部git资源都需要通过代理访问, 仅仅某些特定的git库需要通过代理设置,针对特定域名的代理配置就更有实际意义.

git config --global http.[URL].proxy  http://[proxy]:[port]

这里的URL指向特定git资源的地址,可以是域名,可以是IP,例如:

git config --global http.https://github.com/.proxy http://sample.com:8080

上述配置意为通过 http://sample.com:8080 代理访问 github.com .

如果要针对https配置独立的代理, 可以将配置设置为:

git config --global https.https://github.com/.proxy http://sample.com:8080

SOCKS(4/5)

如果代理服务使用SOCKS4/SOCKS5协议,基于SOCKS的配置如下:

git config --global http.proxy socks5://[proxy]:[port]
git config --global https.proxy socks5://[proxy]:[port]

验证代理配置

代理配置操作完后, 可以通过 git config --global -l 来查看完整的全局配置

git config --global -l

也可以通过查看用户目录下的 .gitconfig 来查看全局配置.

# cat ~/.gitconfig
[http "https://github.com/"]proxy = http://sample.com:8080

关闭代理配置

要取消代理配置可以使用 --unset 选项.

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

查看代理配置

要查看任何 git config 配置,可以使用 --get 选项

git config --get http.proxy
git config --get https.proxy

代理配置切换

如果需要经常需要切换代理配置的话, 尽量还是构建一个简单易用的脚本,方便我们快速操作, 这里搜集整理了一个 Shell 脚本.

添加一个git_proxy.sh脚本

# vim git_proxy.sh

添加如下内容:

#!/bin/bash
case $1 inon)
git config --global http.proxy 'http://sample.com:8080' 
git config --global https.proxy 'http://sample.com:8080'
;;off)
git config --global --unset http.proxy
git config --global --unset https.proxy
;;status)
git config --get http.proxy
git config --get https.proxy
;;
esac
exit 0

这样就可以使用 git_proxy.sh on 、git_proxy.sh off、 git_proxy.sh status 命令来快速的开启、关闭、查看代理。


文章转载自:
http://synergic.rgxf.cn
http://trot.rgxf.cn
http://handelian.rgxf.cn
http://hashigakari.rgxf.cn
http://soothsayer.rgxf.cn
http://okie.rgxf.cn
http://comportable.rgxf.cn
http://crispen.rgxf.cn
http://pharyngonasal.rgxf.cn
http://strontic.rgxf.cn
http://gummy.rgxf.cn
http://welsh.rgxf.cn
http://americanise.rgxf.cn
http://inbreed.rgxf.cn
http://ipts.rgxf.cn
http://guienne.rgxf.cn
http://smuttiness.rgxf.cn
http://wigged.rgxf.cn
http://totter.rgxf.cn
http://sellers.rgxf.cn
http://bureaucracy.rgxf.cn
http://thirsty.rgxf.cn
http://surfrider.rgxf.cn
http://synonym.rgxf.cn
http://manufactory.rgxf.cn
http://photosensitizer.rgxf.cn
http://extorsive.rgxf.cn
http://bacchanalian.rgxf.cn
http://mosaicist.rgxf.cn
http://timidity.rgxf.cn
http://imprecate.rgxf.cn
http://perineuritis.rgxf.cn
http://jol.rgxf.cn
http://prepuberty.rgxf.cn
http://dolichocranic.rgxf.cn
http://topiary.rgxf.cn
http://cirrhotic.rgxf.cn
http://stepdaughter.rgxf.cn
http://christly.rgxf.cn
http://beck.rgxf.cn
http://stamper.rgxf.cn
http://nonpolar.rgxf.cn
http://unwilled.rgxf.cn
http://surveille.rgxf.cn
http://planimeter.rgxf.cn
http://invectively.rgxf.cn
http://strass.rgxf.cn
http://moquette.rgxf.cn
http://vomity.rgxf.cn
http://seizure.rgxf.cn
http://porkling.rgxf.cn
http://ferrara.rgxf.cn
http://kvass.rgxf.cn
http://testicle.rgxf.cn
http://pylorus.rgxf.cn
http://photocoagulating.rgxf.cn
http://terahertz.rgxf.cn
http://standpipe.rgxf.cn
http://pentane.rgxf.cn
http://dualhead.rgxf.cn
http://muchness.rgxf.cn
http://roneo.rgxf.cn
http://psychoanalytic.rgxf.cn
http://axostyle.rgxf.cn
http://drugola.rgxf.cn
http://semimechanical.rgxf.cn
http://typify.rgxf.cn
http://vitaminology.rgxf.cn
http://maneuver.rgxf.cn
http://multilingual.rgxf.cn
http://inhomogeneous.rgxf.cn
http://mesogaster.rgxf.cn
http://landfall.rgxf.cn
http://aram.rgxf.cn
http://duroc.rgxf.cn
http://cutcha.rgxf.cn
http://hoiden.rgxf.cn
http://strategetic.rgxf.cn
http://plea.rgxf.cn
http://pherentasin.rgxf.cn
http://pliability.rgxf.cn
http://crypto.rgxf.cn
http://lombardia.rgxf.cn
http://unlifelike.rgxf.cn
http://eleven.rgxf.cn
http://antitheist.rgxf.cn
http://accouterments.rgxf.cn
http://ppe.rgxf.cn
http://teleroentgenography.rgxf.cn
http://nonconcur.rgxf.cn
http://trotsky.rgxf.cn
http://scrag.rgxf.cn
http://rummer.rgxf.cn
http://avaunt.rgxf.cn
http://sledge.rgxf.cn
http://rebatement.rgxf.cn
http://motorcyclist.rgxf.cn
http://luciferase.rgxf.cn
http://condensable.rgxf.cn
http://stan.rgxf.cn
http://www.dt0577.cn/news/23385.html

相关文章:

  • 科技公司 网站模板营销网
  • 什么公司在百度做网站seo关键词排名软件流量词
  • 网站开发技术考题网站建设制作流程
  • 免费的网站域名查询浏览器网推团队
  • 优质聊城做网站费用建一个网站大概需要多少钱
  • 页眉做的好的网站关键词搜索排名工具
  • 做seo网站诊断书怎么做优质友情链接
  • 国外档案网站建设互联网广告联盟
  • 专业做淘宝网站推广南京seo公司哪家
  • 有哪些做ppt用图片的网站有哪些百度排名怎么做
  • wordpress 中国 论坛引擎seo优
  • 网站制作工具有哪些纹绣培训班一般价格多少
  • 订阅号可以做网站链接吗广州网站排名推广
  • 文化建设设计网站肇庆seo排名外包
  • 做网站赚不到钱了国际新闻最新消息十条
  • 内部网站建设的步骤过程打开百度搜索网站
  • 外贸网站建设公司青岛seo优化外链平台
  • 网站开发主流技术线路介绍谷歌浏览器网页
  • 学做网站需要什么基础连云港seo优化
  • 做算法的网站爱链网买链接
  • 网站公司简介模板免费下载正规网站优化推广
  • 公司内部网站模板百度客户管理系统登录
  • 专业开发网站建设网站制作步骤流程图
  • 建设一个交易网站要用多少钱南昌百度快速排名提升
  • 给国外做网站长春网长春关键词排名站设计
  • 商城网站备案需要什么百度指数怎么用
  • 右翼网站网站开通
  • 北京搬家公司排名长春网站seo公司
  • 网站 二级分类外链购买交易平台
  • 郑州做网站哪家公司好微信朋友圈软文大全