【问题标题】:Error pushing ReactJS (CRA template) code to GitHub enterprise将 ReactJS(CRA 模板)代码推送到 GitHub 企业时出错
【发布时间】:2020-08-04 08:01:24
【问题描述】:

克隆我在我的 Github Enterprise 帐户中创建的空存储库后,我创建了一个 CRA (create-react-app) ReactJS 应用程序。在生成 CRA 脚手架之前,我创建、提交并推送了一个 README.md 文件,它被成功推送。 但是,在生成 CRA 应用程序后,我无法将代码推送到 GitHub Enterprise 服务器。

Git Bash 抛出以下错误:

远程:致命:早期 EOF

而 GitHub Desktop 抛出以下内容:

错误:RPC 失败; curl 56 从对端接收数据失败

多年来,我一直在使用 GitHub 企业版进行 NodeJS 网络应用程序开发,从未遇到过任何此类问题,但我无法推送基于 CRA 的 React 应用程序脚手架代码。

我曾尝试参考以下 StackOverflow 帖子:

  1. Your configuration specifies to merge with the <branch name> from the remote, but no such ref was fetched.?
  2. Git push error '[remote rejected] master -> master (branch is currently checked out)'
  3. Cannot push to GitHub - keeps saying need merge

但那些没有用。显然,这个用例是独一无二的,因为只有在我推送 CRA 代码时才会抛出错误(根据我使用这个 GitHub 企业帐户的所有经验)。

附件(Git Bash & GitHub Desktop errors):

【问题讨论】:

    标签: reactjs git create-react-app github-enterprise


    【解决方案1】:

    这里已经回答了这个问题:https://stackoverflow.com/a/36843260/1673761

    看这里:https://flyingtomoon.com/2011/04/12/git-push-is-failed-due-to-rpc-failure-result56/

    这个问题很可能是因为你的 git 缓冲区太低了。

    您需要通过将 git config var “http.postBuffer” 设置为 524288000 来增加 Git 的 HTTP 缓冲区。

    git config http.postBuffer 524288000
    
    

    【讨论】:

    • 试过了,git config http.postBuffer 524288000,但还是没有成功。
    • 在 GitHub 企业服务器级别是否有任何可能受到限制的配置?
    • 你能试试GIT_CURL_VERBOSE=1 GIT_TRACE=1 git push -u origin master吗? stackoverflow.com/questions/6178401/…
    • 收到以下详细消息,但无法找出任何错误。显然我没有错误:pastebin.com/VetEU6ZX
    猜你喜欢
    • 1970-01-01
    • 2020-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-30
    • 1970-01-01
    • 2023-03-16
    相关资源
    最近更新 更多