GIT 代理配置和遇到的问题-1.配置
最编程
2024-07-07 21:23:49
...
- 配置代理
# 配置, 如果代理不需要账号密码不用配置[用户名:密码@], 如果密码有特殊字符, 使用url编码后使用, 如果代理支持https, 可以尝试使用https, 我没有用过
git config --global http.sslVerify false
git config --global http.http://gitee.com.proxy http://用户名:密码@yourproxy:port
git config --global --add http.https://gitee.com.proxy http://用户名:密码@yourproxy:port
git config --global http.http://github.com.proxy http://用户名:密码@yourproxy:port
git config --global --add http.https://github.com.proxy http://用户名:密码@yourproxy:port
- 配置后结果文件位于: ~/.gitconfig
# 配置后配置文件如下
[http]
sslVerify = false
[http "http://gitee.com"]
proxy = http://用户名:密码@yourproxy:port
[http "https://gitee.com"]
proxy = http://用户名:密码@yourproxy:port
[http "http://github.com"]
proxy = http://用户名:密码@yourproxy:port
[http "https://github.com"]
proxy = http://用户名:密码@yourproxy:port
- 移除配置
# 移除配置
git config --global --unset http.proxy
git config --global --unset http.sslVerify
git config --global --unset http.http://gitee.com.proxy
git config --global --unset http.https://gitee.com.proxy
git config --global --unset http.http://github.com.proxy
git config --global --unset http.https://github.com.proxy
上一篇: 异步分组查询
下一篇: 哨兵 "文章:螺纹隔离和保险丝退化
推荐阅读
-
Ant Design Pro]在 Mac 上配置和运行 Ant Design Pro,并配置解决运行时遇到的一些错误。
-
CentOS 7安装ipvsadm和Nginx,并进行基本配置与测试 下面是重写后的段落: 1. 关闭防火墙 2. 在浏览器中输入服务器IP地址并访问 3. 修改网页内容以区分不同的服务器 4. 配置lvs/nat,使用自定义的脚本 5. 检查ipvsadm设置的规则 6. 关闭防火墙 7. 测试LVS效果。
-
我的Git配置和命令缩写的修改过程记录
-
如何设置Git的SSH连接和小乌龟的SSH配置
-
一键管理多个Git仓库和Github账号的SSH配置指南
-
如何在 Git 中同时关联 GitHub 和 Coding 的仓库配置
-
在 Linux 中,如何解决 Chrome 浏览器无法在设置中配置代理的问题
-
构建三层交换与VTP、STP及Eth-Trunk融合实验:基于双核架构实现高效、稳定、冗余网络" 实验目标: 利用双核心结构,整合三层交换技术、VTP (Virtual Trunking Protocol)、生成树协议 (STP) 和以太网通道 (Eth-Trunk),达成网络高速切换、高可用性、高可靠性和备份连接,适用于双核心拓扑场景。 实验步骤: 1. VLAN划分与IP地址规划: - VLAN10:192.168.10.0/24,默认网关192.168.10.1 - VLAN20:192.168.20.0/24,默认网关192.168.20.1 - VLAN30:192.168.30.0/24,默认网关192.168.30.1 - VLAN40:192.168.40.0/24,默认网关192.168.40.1 2. MSW1三层交换机配置: - 开启三层路由功能:`MSW1(config)#ip routing` - 配置Trunk接口:`MSW1(config-if-range)#switchport trunk encapsulation dot1q; switchport mode trunk` - 设置VTP域和模式:`MSW1(config)#vtp domain test; vtp mode server; vtp password cisco; vtp version 2` - 创建并命名VLAN:`MSW1(config)#vlan 10; MSW1(config-vlan)#name caiwu; ... (为其他VLAN重复操作)` - 分配VLAN IP地址:`MSW1(config-if)#int vlan 10; ip address 192.168.10.1 255.255.255.0; no shutdown; ... (为其他VLAN重复操作)` - 配置生成树优先级:`MSW1(config)#spanning-tree vlan 10,20 root primary; MSW1(config)#spanning-tree vlan 30,40 root secondary` - 链接Eth-Trunk通道:`MSW1(config-if-range)#channel-group 1 mode on; ... (为其他相关接口重复操作)` 3. MSW2三层交换机配置类似MSW1,只需更改VLAN名称和IP地址以及相关端口配置即可。 通过以上步骤,两台三层交换机之间可通过Eth-Trunk实现高速数据交互,并通过VTP统一管理VLAN资源,STP则确保了网络流量的负载均衡,从而构建了一个高效、稳定且具备冗余保护的网络环境。
-
在使用 Vite 环境配置时,遇到关于 import.meta.env 的 TypeScript 报错问题
-
【2022新手指南】Java编程进阶之路 - 六、技术架构篇 ### MySQL索引底层解析与优化实战 - 你会讲解MySQL索引的数据结构吗?性能调优技巧知多少? - Redis深度揭秘:你知道多少?从基础到哨兵、主从复制全梳理 - Redis持久化及哨兵模式详解,还有集群搭建和Leader选举黑箱打开 - Zookeeper是个啥?特性和应用场景大公开 - ZooKeeper集群搭建攻略及 Leader选举、读写一致性、共享锁实现细节 - 探究ZooKeeper中的Leader选举机制及其在分布式环境中的作用 - Zab协议深入剖析:原理、功能与在Zookeeper中的核心地位 - RabbitMQ全方位解读:工作模式、消费限流、可靠投递与配置策略 - 设计者视角:RabbitMQ过期时间、死信队列与延时队列实践指南 - RocketMQ特性和应用场景揭示:理解其精髓与差异化优势 - Kafka详细介绍:特性及广泛应用于实时数据处理的场景解析 - ElasticSearch实力揭秘:特性概述与作为搜索引擎的广泛应用 - MongoDB认知升级:非关系型数据库的优势阐述,安装与使用实战教学 - BIO/NIO/AIO网络模型对比:掌握它们的区别与在网络编程中的实际应用 - Netty带你飞:理解其超快速度背后的秘密,包括线程模型分析 - 网络通信黑科技:Netty编解码原理与常用编解码器的应用,Protostuff实战演示 - 解密Netty粘包与拆包现象,怎样有效应对这一常见问题 - 自定义Netty心跳检测机制,轻松调整检测间隔时间的艺术 - Dubbo轻骑兵介绍:核心特性概览,服务降级实战与其实现益处 - Dubbo三大神器解读:本地存根与本地伪装的实战运用与优势呈现 ----------------------- 七、结语与回顾