Git 取消http proxy设置

本文介绍了如何在MacOS上查看和管理.gitconfig文件,包括设置和移除HTTP代理。通过`git config --list`列出配置,使用`git config --global --unset http.proxy`取消HTTP代理,以及使用`ls -al`和`ls -al .gitconfig`检查文件详情。
摘要由CSDN通过智能技术生成

>git config -l

........

.........
http.proxy=socks5://127.0.0.1:1080

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

>>git config -l

no http.proxy configuration

 

Git config 文件所在位置 on Mac OS, .gitconfig为隐藏文件,用 ls -al 来查看

>ls -al

/Users/lianghyan/.gitconfig

 

>cd /Users/lianghyan

>ls -al .gitconfig

-rw-r--r--  1 lianghyan  staff  312 Sep 30 23:17 .gitconfig

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值