解決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)