git EGit 推送操作给出错误:“在解包远程端时发生错误”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5898042/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
EGit push operation giving error: "Error occurred during unpacking the remote end"
提问by Abhay
Error occurred during unpacking the remote end
远程端解包时出错
Steps, which I followed: On system A (remote):
我遵循的步骤: 在系统 A(远程)上:
- Installed EGit
- Create a project
- Share that project
- Create repository
- Add and commit that project to repository
- (share the repository folder)
- 安装EGit
- 创建项目
- 分享那个项目
- 创建存储库
- 将该项目添加并提交到存储库
- (共享存储库文件夹)
On system B (local):
在系统 B(本地)上:
- Install EGit
- Import project (by cloning remote repository)
- select clone (not add)
- give the path of remote repository like 192.168.10.28\Git\repo
- check the branch
- give destination path(local)
- follow simple steps and import the project
- Modify the code
- commit it to local repository
- Now go to repository view and push the local repository content to the remote 1
- ERROR window pops up saying
- 安装EGit
- 导入项目(通过克隆远程存储库)
- 选择克隆(不添加)
- 给出远程仓库的路径,如 192.168.10.28\Git\repo
- 检查分支
- 给出目标路径(本地)
- 按照简单的步骤并导入项目
- 修改代码
- 将其提交到本地存储库
- 现在转到存储库视图并将本地存储库内容推送到远程 1
- 错误窗口弹出说
"Can't connect to any repository: \192.168.100.28\Git\repo (An internal Exception occurred during push: \192.168.100.28\Git\repo: Pipe closed)"
“无法连接到任何存储库:\192.168.100.28\Git\repo(推送期间发生内部异常:\192.168.100.28\Git\repo:管道已关闭)”
回答by Paul Croarkin
This issue is not specific to Egit. It occurs when git cannot write to the destination folder on the remote system. This could be, as noted in another answer, that the folder did not have the correct permissions. It could also be for other reasons, such as in my case where the file system had reached full capacity.
此问题并非特定于 Egit。当 git 无法写入远程系统上的目标文件夹时会发生这种情况。正如另一个答案中所述,这可能是该文件夹没有正确的权限。也可能出于其他原因,例如在我的情况下,文件系统已达到满容量。
回答by VonC
The only "pipe closed" error on Egit is mentioned in bug 314107and isn't related to your case.
错误 314107 中提到了Egit上唯一的“管道关闭”错误,并且与您的情况无关。
The only suspicious element in your scenario is the address of your remote repo. With the file protocol, I would specify:
您的场景中唯一可疑的元素是远程仓库的地址。使用文件协议,我会指定:
file:///192.168.100.28/Git/repo.git
As the OP Abhaycomments, the destination folder was write protected, which was enough to trigger that error message.
正如OP Abhay评论的那样,目标文件夹被写保护,这足以触发该错误消息。