6 天 后

图片挂掉是因为国内吧,我在国内也看不到

1 个月 后

作者你好,我想问一下,为什么我每次把本地的变更推送到云端(Push origin)都会报错啊, 错误信息显示:
fatal: unable to access 'https//github.com/lizhiwei1994/rPackageTutorial.git/': OpenSSL SSL_read:SSL_ERROR_SYSCALL, errnor 10054.
然后我从网上找到了一种解决方法如下:
打开git bash 窗口
$ git config --global http.proxy
$ git config --global --unset http.proxy

用这两行代码可以解决上边的报错,但是现在的问题是,每次 push origin都会报错,然后我每次都要在git bash里运行上边的代码,有没有其他的办法可以一次性解决这个问题啊。
谢谢!

    zovey_lee 没有碰到过这种情况,估计是国内访问GitHub的原因?或者是GFW的影响?
    引用一个答案:https://stackoverflow.com/questions/56745021/failing-to-push-branch-to-git-getting-rpc-failed-errno-10054

    The error number 10054 is WSAECONNRESET, which means the connection was reset by the peer. That basically means that either the remote server or something in between intentionally closed the connection in an abrupt way.

    That means that it's possible GitHub closed the connection, but it's likely instead that it's a proxy, network filter (e.g. anti-porn filter), or antivirus program. If you have one or more of those enabled, try disabling them (or, for antivirus, removing it altogether, since disabling it is often not effective) or connecting from a different location. This is definitely a network problem, and it's something that exists between Git and GitHub in the network stack that is causing it.

    或者:https://stackoverflow.com/questions/49345357/fatal-unable-to-access-https-github-com-xxx-openssl-ssl-connect-ssl-error

      InfinityLoop 感谢,已解决!
      我还有一个问题,就是我在运行usethis::use_tidy_github_actions()的时候,并没有出现文中的结果,而是:

        CyrusYip 谢谢,已通过设置git config --global --add remote.origin.proxy ""解决了!

        zovey_lee 不是很明白你说的出现文中结果是什么意思。只弹出

        - Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
        - Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
        - Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
        - Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md

        的意思吗?能告知你用的 {usethis} 版本嘛。我看了官方文档似乎没有什么相关的变更说明。
        https://usethis.r-lib.org/reference/tidyverse.html#details

        其实你想要什么流程只要按照 Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md 中一样设置(复制粘贴)也可以办到的。

        3 个月 后
        5 个月 后

        感谢分享!另外还想问一下想在包里添加内置数据集该怎么操作呢?看到有的教程说也要写帮助文档,有的却没提这个。