【git】解决:Failed to connect to 127.0.0.1 port 7890: Connection refused

简介: 【git】解决:Failed to connect to 127.0.0.1 port 7890: Connection refused

一、背景

  1. goland 开发工具;
  2. 以前配备有clash代理;
  3. git 以前配置过 http.proxy 和 https.proxy
  4. 执行 go get -u ;
  5. go get -u 后面跟的是带端口号的git地址,起源详见:408. 【go 语言】使用私有仓库的 go module
  6. 报错如下:
testgodriver/xxxx/common imports
        proxy.xxxxx.cn/share/go-sql-driver/xxxxx: module proxy.xxxxx.cn/share/go-sql-driver/xxxxx: git ls-remote -q origin in K:\v4_go_path\pkg\mod\cache\vcs\6101860f185291f54b13b576ac22ff584066fa685953dacffe2d9d13b73e9a2d: exit status 128:
        fatal: unable to access 'http://proxy.xxxxx.cn/share/go-sql-driver/xxxxxx.git/': Failed to connect to 127.0.0.1 port 7890: Connection refused

二、解决办法

取消git的代理:

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

image.png

目录
相关文章
|
4月前
|
网络协议 Linux 网络安全
weavescope curl -L git.io/scope -o /usr/local/xx failed to connect to 2001: Network is unreachable
weavescope curl -L git.io/scope -o /usr/local/xx failed to connect to 2001: Network is unreachable
|
1月前
|
开发工具 git
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
|
2月前
|
网络安全 开发工具 git
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
20 0
|
2月前
|
Linux 开发工具 git
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
|
4月前
|
开发工具 git
[Git Error] failed to push some refs to “××××.git”
[Git Error] failed to push some refs to “××××.git”
48 0
|
4月前
|
Shell 开发工具 数据安全/隐私保护
git上传项目一直报一个文件没有添加任何内容(git上拉去别人的项目上传到自己的仓库/error: failed to push some refs to ‘https://gitee.com/)
git上传项目一直报一个文件没有添加任何内容(git上拉去别人的项目上传到自己的仓库/error: failed to push some refs to ‘https://gitee.com/)
67 0
git上传项目一直报一个文件没有添加任何内容(git上拉去别人的项目上传到自己的仓库/error: failed to push some refs to ‘https://gitee.com/)
|
6月前
|
Shell BI 开发工具
【问题解决】Git报错:failed to push some refs to xxxxx
Git报错:failed to push some refs to xxxxx
113 0
|
6月前
|
应用服务中间件 开发工具 nginx
【git】解决:error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
【git】解决:error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
167 0
|
9月前
|
Linux Shell 网络安全
git上传文件到Gitee报错“error: failed to push some refs to https://gitee.com/xxxx”
我要将一个 4.27 GB 的文件上传到 Gitee 上,但是出现了下面这样的报错 error: failed to push some refs to 'https://gitee.com/xxxx/centos.git 因此记录一下解决报错的方法。
806 2
|
15天前
|
缓存 数据可视化 网络安全
Git命令大全
Git命令大全
46 1