赞
踩
问题:
有个工程打了tar包。要push到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 | 30.52 MiB/s, done.
- Total 6 (delta 1), reused 0 (delta 0)
- error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
- fatal: The remote end hung up unexpectedly
- 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)
可以提交了 。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。