当前位置:   article > 正文

git push 报错413 Request Entity Too Large_gitlab 413 request entity too large

gitlab 413 request entity too large

问题:

有个工程打了tar包。要push到git 提交报错了

  1. git push
  2. Counting objects: 6, done.
  3. Delta compression using up to 4 threads.
  4. Compressing objects: 100% (6/6), done.
  5. Writing objects: 100% (6/6), 40.96 MiB | 30.52 MiB/s, done.
  6. Total 6 (delta 1), reused 0 (delta 0)
  7. error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
  8. fatal: The remote end hung up unexpectedly
  9. fatal: The remote end hung up unexpectedly

调整buffer 不起作用:

 git config http.postBuffer 524288000
网上说的提交从http改为ssh. 主要步骤:

1 生成公钥私钥,将公钥从网页ssh位置添加上。

2 查看git项目的ssh地址,将git远程设为ssh地址。

3 push

看下步骤:

ls -al ~/.ssh

看下有没有pub

ssh-keygen -t rsa -C "bohu83@163.com"

把pub 粘贴到git  账户

2设置项目 为ssh

git remote set-url origin git@git.***.git

3 提交

 ssh -T git@git.***

验证下登录

再次执行git push

Counting objects: 6, done.

Delta compression using up to 4 threads.

Compressing objects: 100% (6/6), done.

Writing objects: 100% (6/6), 40.96 MiB | 263.00 KiB/s, done.

Total 6 (delta 1), reused 0 (delta 0)

可以提交了 。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/511027
推荐阅读
相关标签
  

闽ICP备14008679号