商务合作加Q:411239339

GoLand与github使用

浏览:981次阅读
没有评论

共计 742 个字符,预计需要花费 2 分钟才能阅读完成。

1. 给 GoLand 配置国内代理

为了不受 GFW 的影响,我们将修改国内代理地址

GoLand 与 github 使用

2. 配置 github 账号

GoLand 与 github 使用

点击 + 号,此时会跳转到网页上去认证,认证完成后就是下面效果

GoLand 与 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
正文完
扫码赞助
post-qrcode
 0
果子
版权声明:本站原创文章,由 果子 于2022-11-01发表,共计742字。
转载说明:除特殊说明外本站文章皆由果较瘦原创发布,转载请注明出处。