devroom.io/content/posts/2009-10-15-git-problem-error-unable-to-create-temporary-sha1-filename.md

20 lines
525 B
Markdown
Raw Normal View History

2015-03-26 11:28:08 +00:00
+++
date = "2009-10-15"
title = "Git problem: error: unable to create temporary sha1 filename"
tags = ["git", "prune", "repack", "fsck"]
slug = "git-problem-error-unable-to-create-temporary-sha1-filename"
+++
I got <code>git problem: error: unable to create temporary sha1 filename</code> when pushing to a remote repository. The fix is rather easy.
2017-03-20 15:35:19 +00:00
2015-03-26 11:28:08 +00:00
On both your local and remote repositories perform the following magic:
2017-03-20 15:35:19 +00:00
``` shell
git fsck
git prune
git repack
git fsck
```
2015-03-26 11:28:08 +00:00
The last fsck should not report any problems.