English 中文(简体)
git + github + 窗/linux party = 不相容
原标题:egit + github + window/linux party = incompatible
  • 时间:2011-11-24 10:12:33
  •  标签:
  • git
  • github

我不知道这是否给人留下了麻烦......也许不是......。

<>Scenario: 刚用一线档案(最低试样)制作的吉安布背书

<>Players:

  1. Windows 7 + Eclipse + egit.core_1.1.0.201109151100-r (we have tried also with the last nightly build)
  2. Linux + Git 1.7.7.3 (we have tried with 1.6 also)

<>Steps:

  1. Any of players create the repository with one file and one line in it. Github shows correctly the stuff. The last commit hash is now (for example): 1
  2. Linux player changes the line, commits and pushes The last commit hash is now: 2
  3. Windows player pulls ... changes the line, commits and pushes The last commit hash is now: 3
  4. 似乎:

    <代码>error: 无法找到“hash 3”

    fatal: object "hash 3" not found

http://www.ohchr.org。 由于Windows的参与者第一次推展,因此,短链氯化石蜡的参与者可以再拖拉。

铭记:

  • github shows the 3 commits correctly, the last one the number 3
  • in the linux: git fsck shows nothing at all ...
  • if the linux delete the repo and clone it again, it pulls correctly up to "hash 3"
  • if the linux do a reset to HEAD, it responds: HEAD is now at "hash 2"

In some way, linux git knows the HEAD is "hash 3", but it can t find it.

事先感谢你:

最后一个指挥部显示:

$ git pull
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 9 (delta 2), reused 6 (delta 0)
Unpacking objects: 100% (9/9), done.
error: unable to find a11bcd8a714678038f504a107aa008a00a4e1e52
fatal: object a11bcd8a714678038f504a107aa008a00a4e1e52 not found
问题回答

I m与Zentdroom 9(基于Eclipse + EGit)有着同样的问题。 “宗教”是指:

  1. After a Windows (EGit) push, existing repo cannot push or pull from origin
  2. if you try to clone the master repository to a completely new repository, everything works fine
  3. the files in the newly cloned repo are up-to-date. The newly cloned repo can push and pull from the origin, everything work smootly
  4. the "origin" can be cloned again and again, can pull/commit/push as much as they want and everything works smoothly
  5. the older repositories still cannot push/pull
  6. if you do a push from Windows (EGit), from that moment on also the new clones stop working with the same error message

现在,我相信,它会有一些由GEGit/Gite所篡改的物品,但由于数据在“原始”和衣物中是及时的,因此,我认为这只是一个 g。

Duccio

我有同样的问题。

在视窗机中,但在服务器上,在我拉开时,我得到:

error: unable to find 9a95b38554e01849e0d2dd0c769dfd9b130aa123 fatal: object 9a95b38554e01849e0d2dd0c769dfd9b130aa123 not found

I found out that if I create an empty branch and push it, then pull will work:

git Branch Foobar

git 推力来源 Foobar





相关问题
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 ...

热门标签