{"id":7456,"date":"2014-06-19T03:59:09","date_gmt":"2014-06-19T03:59:09","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/19\/corrupted-git-branch-after-suspected-hard-disk-issue-collection-of-common-programming-errors\/"},"modified":"2014-06-19T03:59:09","modified_gmt":"2014-06-19T03:59:09","slug":"corrupted-git-branch-after-suspected-hard-disk-issue-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/19\/corrupted-git-branch-after-suspected-hard-disk-issue-collection-of-common-programming-errors\/","title":{"rendered":"Corrupted Git Branch after suspected hard disk issue-Collection of common programming errors"},"content":{"rendered":"<p>So I was having a problem with my hard disk (I think). Everytime I ran git log commands (when running Windows through VMWare Fusion for Mac) it would throw a fatal error causing VMWare to crash (something about unable to reach disk drive). Even if I booted to Boot Camp natively and tried running git log, I got some error about less.exe failing.<\/p>\n<p>I couldn&#8217;t copy\/delete any files in the git\/bin folder without problems (VMWare crashing). So I tried to just install the latest git (1.6.7 from 1.6.4). After doing this, I could successfully run git log commands again and everything seemed to be working.<\/p>\n<p>Before the original crash had occurred, I had a branch I was working on that has a lot of changes. Now when I try to checkout that branch, I get the following error:<\/p>\n<p>error: unable to unpack d7a66a887fbe9b5f2baec0580da1fb4c1f39851e header error: inflateEnd: failed fatal: loose object d7a66a887fbe9b5f2baec0580da1fb4c1f39851e (stored in .git\/objects\/d7\/a66a887fbe9b5f2baec0580da1fb4c1f39851e) is corrupt.<\/p>\n<p>I get similiar error if I do git cat-file -t d7a66a887fbe9b5f2baec0580da1fb4c1f39851e. I saw this on another post. My branch had not been pushed to the network repository yet as I was only working on it locally. Any chance of recovering\/fixing this branch? I&#8217;m desperate to not lose this code \ud83d\ude41<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I was having a problem with my hard disk (I think). Everytime I ran git log commands (when running Windows through VMWare Fusion for Mac) it would throw a fatal error causing VMWare to crash (something about unable to reach disk drive). Even if I booted to Boot Camp natively and tried running git [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7456","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7456"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7456\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}