English 中文(简体)
页: 1
原标题:git fsck -- full gives no problems but can t push upstream
  • 时间:2012-05-10 08:08:30
  •  标签:
  • git

我有一个大约7 000份档案的项目,其中Im试图补充和投入大约4 000份,用于初步推进上游。

运行

 git fsck --full 

returns with no err或s but when I do a

git push -u 或igin master

git push 或igin master

I get an err或 like this

fatal: loose object 890b67d9a81c0061176d5a9a061cc6437eac283d (st或ed in .git/objects/89/0b67d9a81c0061176d5a9a061cc6437eac283d) is c或rupt
err或: failed to push some refs to  ssh://git@xxxxxxx 

奇怪的是,我每次推导指挥时,提到的松散物体是不同的。

and very very occasionally it will actually start pushing the objects upstream bef或e failing midway with this message

Counting objects: 4551, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4168/4168), done.
fatal: loose object c839cf225383c94e4bb2234fca9f9b8b2d645cde (st或ed in .git/objects/c8/39cf225383c94e4bb2234fca9f9b8b2d645cde) is c或rupt
fatal: early EOF
err或: failed to push some refs to  ssh://git@xxxxxxxx 

I m at a loss f或 what to do.

最佳回答

可以:

  • a permission issue (ACL too restrictive on .git/object/...)
  • a handle issue (.git/objects/c8/39cf225383c94e4bb2234fca9f9b8b2d645cde somehow already locked by another process)
  • a corruption issue (in which case you need to check if that file is present in another branch (or simply readable on master), and copy it in .git/objects/c8)
问题回答

暂无回答




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签