0

I cloned a public gist and made some changes. Now I have a new code, plus several files in the same folder that running the code generates.

I want to push the code on my computer up to my gist -- is it possible to do so with non-code files in the same git folder? I tried and encountered some fatal error

fatal: the remote hung up unexpectedly

fatal: recursion detected in die handler

Heisenberg
  • 8,386
  • 12
  • 53
  • 102
  • It doesn't matter whether your files contain code or text or anything else. Have you added and commited them locally? Useful link on adding http://stackoverflow.com/questions/572549/difference-of-git-add-a-and-git-add – Tala Jun 26 '13 at 07:59
  • Yes, git status shows clean working directory, and that my branch is ahead of origin. – Heisenberg Jun 26 '13 at 09:02

2 Answers2

0

The problem could be that server is down or a corrupt repository. Then you could try :

git fsck

Also this answer might be useful: git-fatal-the-remote-end-hung-up-unexpectedly

Community
  • 1
  • 1
Tala
  • 8,888
  • 5
  • 34
  • 38
  • I really suspected that the reason is because I tried to push some pictures into `gist.github.com`. I tried to push another folder with only codes to gist and it worked fine. Are you sure I can push non-code files to gist? – Heisenberg Jun 27 '13 at 01:45
  • sure, this is very similar : http://stackoverflow.com/questions/16425770/how-do-you-upload-images-to-a-gist – Tala Jun 27 '13 at 05:22
  • I just put a random image in the folder that works fine, and that recreates the problem. I guess it's possible to put an image up gist, just not via direct push. – Heisenberg Jun 27 '13 at 07:52
0

We had a proxy issue that caused the "fatal: recursion detected in die handler". When I connected to our git server directly without the proxy, this issue went away.

The Camster
  • 1,850
  • 1
  • 20
  • 27