git推送错误:pack-objects死于奇怪的错误 [英] git push error: pack-objects died with strange error

查看:368
本文介绍了git推送错误:pack-objects死于奇怪的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



I have been pushing to this repo successfully for some time, it started giving me the following error from no where, any ideas why it is happening?

Ishaqs-Mac:source ishaq$ git push
Counting objects: 68, done.
Delta compression using 2 threads.
Compressing objects: 100% (50/50), done.
Connection to SERVER closed by remote host.
error: pack-objects died with strange error
error: failed to push some refs to 'SERVER:PROJECT.git'

感谢您的时间和帮助。

appreciate your time and help.

推荐答案

很有帮助。但是你的问题不是来自Git包;第一条错误消息来自OpenSSH,它能够到达远程服务器但不能登录:

Unfortunately, the error messages aren't very helpful. But your problem isn't coming from Git pack; the first error message is from OpenSSH, which was able to reach the remote server but not sign in:

Connection to SERVER closed by remote host.

这不是密码问题(它具有不同的错误信息),但可能是权限问题像一个没有适当权限的组,我偶尔会在OSX上看到)或者一个无法识别的帐户名(在某些系统上这会报告密码问题)或超时。您可以尝试从命令行登录:

This is not a password problem (which has a different error message) but could be a permissions problem (like a group that doesn't have proper permission, which I see occasionally on OSX) or an unrecognized account name (on some systems this reports with password problems) or a timeout. You might try signing in from the command line:

$ ssh username@servername

可以发现您遇到的问题。您也可以尝试修复权限; OS X似乎特别容易受到频繁的权限问题和从奇怪组运行。

to discover what kind of problem you are having. You might also try repairing permissions; OS X seems particularly vulnerable to recurring permissions problems and to running from odd groups.

Sidenote - 因为您在Leopard上,所以我建议您安装 SSHKeychain ,用于管理SSH身份并自动将您的SSH密码存储在系统密钥链中。它不会帮助您解决当前的问题,但可能会在将来避免类似的问题。

Sidenote -- since you're on Leopard, I suggest you install SSHKeychain, which manages SSH identities and will store your SSH passphrases in the system keychain automatically. It won't help your current problem, but might prevent similar problems in the future.

这篇关于git推送错误:pack-objects死于奇怪的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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