<p>Hello I have the following error by git-fsck, which cannot be cleaned by git-gc even in --aggressive mode. What can I do next to fix this repository error? </p>

<pre><code>$ git-fsck
bad sha1 file: .git/objects/55/tmp_obj_a07724
</code></pre>

[{'answer_id': 39927, 'author': 'Jordi Bunster', 'author_id': 4272, 'author_profile': 'https://Stackoverflow.com/users/4272', 'pm_score': 4, 'selected': True, 'text': '<p>It\'s not a simple answer, sadly. But this might help:</p>\n\n<p><a href="http://schacon.github.com/git/user-manual.html#recovering-from-repository-corruption" rel="noreferrer">Recovering from repository corruption</a> (from the Git\'s user manual).</p>\n'}, {'answer_id': 44733, 'author': 'Damien Diederen', 'author_id': 3844, 'author_profile': 'https://Stackoverflow.com/users/3844', 'pm_score': 3, 'selected': False, 'text': '<p>Err... <code>tmp_obj_a07724</code> suspiciously looks like a leftover temporary\nfile :)</p>\n\n<p>What happens if you simply move it away from the <code>.git</code> directory\n(after a backup of the whole thing)?</p>\n'}, {'answer_id': 49404775, 'author': 'Sergei Krivonos', 'author_id': 525578, 'author_profile': 'https://Stackoverflow.com/users/525578', 'pm_score': 0, 'selected': False, 'text': '<p>From <code>man git-fsck</code>:</p>\n\n<pre><code>Any corrupt objects you will have to find in backups or other archives\n(i.e., you can just remove them and do an rsync with some other site in\nthe hopes that somebody else has the object you have corrupted).\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/39475', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2313/']