git did not exit cleanly (exit code 128) write error: Bad file descriptor

牧云@^-^@ 提交于 2019-12-23 03:14:45

问题


Since a couple of days I have a problem to pull/push on Github on the origin branch. I use git with TortoiseGit.

I got this error message on push:

fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
fatal: write error: Bad file descriptor

I got this error message on pull:

git.exe pull -v --progress       "origin"
Cannot chdir to , the toplevel of the working tree

git did not exit cleanly (exit code 1) (6771 ms @ 20.09.2013 10:01:25)

And I think it has to do with my local working tree. the view of the commit log shows in the top row after every new commit "Working dir changes"

in below in the description area there stands:

SHA-1: 000000000000000000000000000000000000000

Working dir changes 
files changed 

What I have done:

  • TortoiseGit clean up:
    clean Type
    • Remove all untracked files (-fx)
    • Remove untracked directories (-d)

What can I do to recover a coherent repo locally?


回答1:


IF it is your working tree/index which is somehow corrupted, you could:

  • try the hard way, and find the missing objects
  • try the easy way first, and clone again your GitHub repo in a different directory.

I would try the second approach first.



来源:https://stackoverflow.com/questions/18911742/git-did-not-exit-cleanly-exit-code-128-write-error-bad-file-descriptor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!