源代码树 GIT 推送失败,错误 'The remote end hung up unexpectedly'

Source Tree GIT push failed with error 'The remote end hung up unexpectedly'

我无法从 GIT 签入源代码 我正在使用 GIT 的源代码树客户端。

我在推送代码时出现以下错误。

POST git-receive-pack (1141901 bytes)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
Pushing to https://me@domain/branch.git
To https://me@domain/branch.git
 = [up to date]      3.4.0 -> 3.4.0
 = [up to date]      3.5.0 -> 3.5.0
Everything up-to-date
Completed with errors, see above.

当您尝试通过 HTTP(s) 从 git 推送大文件时会发生此错误。
这个问题的解决方法是使用ssh URL.

您需要创建私钥和 public 密钥(您可以使用 pageant 工具)。 public 密钥应添加到您的 bitbucket 配置文件下。

那就试试git push就可以解决问题了