18 lines
528 B
Markdown
18 lines
528 B
Markdown
|
+++
|
||
|
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.
|
||
|
~
|
||
|
On both your local and remote repositories perform the following magic:
|
||
|
|
||
|
git fsck
|
||
|
git prune
|
||
|
git repack
|
||
|
git fsck
|
||
|
|
||
|
The last fsck should not report any problems.
|
||
|
|