其他分享
首页 > 其他分享> > 解决Gitlab的The remote end hung up unexpectedly错误,解决RPC failed; HTTP 413 curl 22 The requested URL retu

解决Gitlab的The remote end hung up unexpectedly错误,解决RPC failed; HTTP 413 curl 22 The requested URL retu

作者:互联网

解决Gitlab的The remote end hung up unexpectedly错误

解决RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large问题

 

解决办法1:

  换用ssh克隆

解决办法2:

  分成多次提交,每次只提交一小部分代码

 

方法1

1. 生成SSH Key,终端执行:

ssh-keygen -t rsa -C "YourEmail@example.com"

 ...

回车即可,生成

Your identification has been saved in /Users/xxx/.ssh/id_rsa.
Your public key has been saved in /Users/xxx/.ssh/id_rsa.pub.

 

2. gitlab配置ssh

  1. 登陆GitLab,打开"Settings"->"SSH Keys"页面:
  2. 在"Add SSH Key"处,填上任意Title,在Key文本框里粘贴id_rsa.pub文件的内容
  3. 点"Add Key",即可看到你添加的key

3. 更新现有项目的仓库地址

  1. 删除原服务端,切换到项目目录下

  git remote remove origin

  2. 添加新目标服务端地址

  git remote rename origin 自己仓库的ssh地址(ssh://git@git.xxx:20/xxxx/xxxx.git)

 

标签:git,HTTP,rsa,unexpectedly,ssh,Key,413,remote
来源: https://www.cnblogs.com/will-xz/p/14660355.html