共计 742 个字符,预计需要花费 2 分钟才能阅读完成。
文章目录 [隐藏]
1. 给 GoLand 配置国内代理
为了不受 GFW 的影响,我们将修改国内代理地址
2. 配置 github 账号
点击 + 号,此时会跳转到网页上去认证,认证完成后就是下面效果
3.push 排错
在 push 代码到 github 时可能会碰到以下问题:
fatal: unable to access 'https://github.com/linuxbirds/tcp_proxy.git/': OpenSSL SSL_read: Connection was reset, errno 10054
11:02:09.048: [GoProject] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/master:master
这是因为 git 配置了 openssl 原因,打开 cmd 依次输入如下命令:
C:\Users\chin
λ git config user.name
chin
C:\Users\chin
λ git config user.email
411239339@qq.com
C:\Users\chin
λ git config --global http.sslVerify "false"
C:\Users\chin
λ ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
C:\Users\chin
# 配置一下我的本地代理,避免因 GFW 无法 push
λ git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
正文完
扫码赞助
