在推送期间发生内部异常:无法存储对象 [英] An internal Exception occurred during push: cannot store objects

查看:215
本文介绍了在推送期间发生内部异常:无法存储对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我是Git的新手,并尝试设置服务器部分和客户端部分。
在服务器端我有ssh访问和Git版本1.5
在客户端我有eclipse与eGit。



我创建了git repo服务器端通常是通​​过git init和添加的简单html文件。
使用eGit我结帐回购,一切似乎都很顺利。我在客户端进行了更改,提交并决定推回服务器。



现在我已经设置了所有权限,但仍然收到以下错误:



我不知道如何解决它,错误信息不提供很多细节。
请帮忙。



谢谢!

解决方案

好的,我以下方式解决了我的问题:



1)我更改了远程提取的配置,并从 sftp 拉到 ssh



2)一旦我做了第一步我有不同的错误:




当我尝试从终端推动更改时,我得到以下内容:




git push origin

密码:

bash:git- receive-pack:命令未找到

致命:远程端意外挂起




3)发现上述错误的答案: git-upload-pack:命令没有找到,怎么样o正确地修复这个错误



4)在我的旧服务器路径上,git是:/ usr / local / git / bin所以我把它添加到.bashrc文件。



一旦这样做,一切都开始运行:




Hello I am new to Git and trying to setup server part and client part. On a Server side I have ssh access and Git version 1.5 On a Client side I have eclipse with eGit.

I created git repo on a server side via usual means: git init and added simple html file. Using eGit I checkout the repo and everything seems to be going well. I made changes on a client side, committed it and decided to push back to the server.

Now I have all permissions set but still get following error:

I don't know how to fix it and error message doesn't provide much details. Please help.

Thank you!

解决方案

Ok, I resolved my issue following way:

1) I changed configuration for remote fetch and pull from sftp to ssh

2) Once I did step 1. I got different error:

When I tried to push changes from Terminal I got following:

git push origin
Password:
bash: git-receive-pack: command not found
fatal: The remote end hung up unexpectedly

3) Found answer to the above error: git-upload-pack: command not found, how to fix this correctly

4) On my old server path to the git is: "/usr/local/git/bin" So I added it to .bashrc file.

Once I done that, everything started to work:

这篇关于在推送期间发生内部异常:无法存储对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆