GoLand与github使用

2022/11/0111:26:18GoLand与github使用已关闭评论

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
  • 微信扫码赞助
  • weinxin
  • 支付宝赞助
  • weinxin