gpt4 book ai didi

git - 无法解析代理 :

转载 作者:IT王子 更新时间:2023-10-29 00:41:56 25 4
gpt4 key购买 nike

上类有代理,家里没有代理

在工作中,我将代理设置为:

    git config - -global  http.proxy  http://proxy.theaddress.co.uk:8080
git config - -global https.proxy https://proxy.theaddress.co.uk:8080

在家里我删除了代理

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

我正在尝试将一些东西推送到我的 git 仓库

    git push -u origin master

我明白了

    Could not resolve proxy: proxy.theaddress.co.uk

.gitconfig 文件如下所示。

    [user]
name = first last
email = first.last@sitname.co.uk
[http]
[https]
[push]
default = current
[http]
[core]
excludesfile = /Users/first.last/.gitignore_global
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[http]
[https]
[http]
[https]
[http]
[https]
[http]
[https]
[http]
[https]
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[http]
[https]
[https]
[http]
[http]
[https]
[http]

如何删除代理?

最佳答案

检查环境变量:

$echo $http_proxy
$echo $https_proxy
$echo $HTTPS_PROXY
$echo $HTTP_PROXY

如果设置了这些环境变量中的任何一个,然后只需使用 http_proxy= 取消设置,然后 enter 将取消设置

$export http_proxy=

关于git - 无法解析代理 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27430239/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com