使用git提交比较大的文件的时候可能会出现这个错误
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
这样的话首先改一下git的传输字节限制
git config http.postBuffer 524288000
然后这时候在传输或许会出现另一个错误
error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
这两个错误看上去相似,一个是411,一个是413
下面这个错误添加一下密钥就可以了
首先key-keygen 生成密钥:ssh-keygen -t rsa
程序会提示您输入密钥的文件名,直接按回车即可。
然后会要求你输入一个密码,将来在使用密钥的时候需要提供这个密码。可以输入,也可以不输入直接回车(无论输入还是不输入,都会要求你确认一次)。
确认完毕后,程序将生成一对密钥存放在以下文件夹:
C:\Users\Administrator[这里替换成你的用户名]\.ssh
密钥分成两个文件,一个私钥(id_rsa)、一个公钥(id_rsa.pub)。
私钥保存在您的电脑上,公钥交项目负责人添加到服务器上。用户必须拥有与服务器公钥所配对的私钥,才能访问服务器上的代码库。
(在gitLAB页面最上边有ADD SSH KEY 连接)
之后:
git push ssh://192.168.64.250/eccp.git branch
这就可以了
相关推荐
error: RPC failed; result=18, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal: 过早的文件结束符(EOF) fatal: index-pack failed Solution for failed with error: RPC failed; result=18, ...
git首次提交代码到远程仓库提示413错误,错误信息如下 git push --set-upstream origin master Enumerating objects: 153, done. ...error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Req
Error response from daemon: rpc error: code = FailedPrecondition desc = node y2qsyjdbfmm4tjwh4p9wqlmq1 is not down and can’t be removed 解决(需要把active状态的节点的docker服务关闭;同时在manager节点中...
RPC failed; curl 18 transfer closed with outstanding read data remaining 在度娘上找到的方法都是说是:缓存区溢出,只要加大缓存区就可以了,然后跟着网上的说法一顿操作,结果发现依然是这个问题。 网上的...
解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法 今天Git push的时候 fatal:remote error: You can't push to git://github.com/username/*.git Use git@github....
Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': Failed connect to ...
问题描述: 在使用git 进行提交时, 出现上面这个报错, 导致无法提交. 报错大致意思就是创建index.lock文件失败,因为已经存在index.lock文件了. index.lock文件是在.git下面, 而.git是一般是隐藏的, 那么可以通过以下...
今天首次使用VS Code的Git功能,翻遍了 所有中文教程,竟没有一个靠谱的。遂动笔写一篇。 请确保你安装了最新的VS Code.http://code.visualstudio.com/ 请确保安装了最新版的Git。https://git-scm.com/download。git...
torch 项目完整代码,公司无法使用git,所以放了个备份在csdn上 (git clone https://github.com/torch/distro.git ~/torch --recursive)
使用此参数来定位更多提交。 --start=[(int)start]:提交的起始偏移量。 --format=[array|json|md|console]:导出的格式。 默认情况下,导出显示到控制台。 如果选择了 md 格式,它会在目标 repo 中创建一个名为...
Mac升级了系统 在idea 中发现Git居然坏了。。。 完整的错误信息 Сannot Run Git ...看了下Git命令能否正常使用 命令行git –help 依然报和上面同样的错误 在查找了下git的安装目录 whereis git /usr/bin/
git操作提示符,一些日常操作git提交的以及出现错误时的处理方法,很简单的一些记录
主要介绍了解决fatal:remote error:You can't push to git://github.com/username/*.git问题的办法的相关资料,需要的朋友可以参考下
git002:使用git 002
leetcode 答案 【toc】 ...个人收集的有用项目,使用git submodule方式,引用已有项目。 项目环境 submodule的使用 参考: 增加submodule git submodule add https://SubModule.git 首次拉取 git clone ...
学习git的基本操作时,遇到问题error: failed to push some refs to 'https://gitee.com/xiao-longlong/git-test.git' 解决办法:先执行git pull --rebase origin master 然后执行git push origin master即可
Git修订版 Git Revision是一个简单的(45 SLoC)Ruby gem,提供有关git源代码的基本信息。 您可以在应用程序中使用它,显示已部署的版本。 安装 添加到Gemfile: gem 'git-revision' 并运行: bundle install ...
最近在一个基于 git 的发布系统中拉取代码,发现无法拉取最新的提交记录,通过调试和查看日志文件找到一行错误:error: cannot open .git/FETCH_HEAD: Permission denied,原因是文件权限问题导致。 问题原因 ...
svn+git实现离线提交并且不需要到处所有svn版本,速度超快非一般的感觉,超越git本身的git2svn功能。 使用本工具需要安装基础工具: 首先安装git msysgit:https://code.google.com/p/msysgit/downloads/list msysgit...