2013-03-24 21:28:43 +00:00
|
|
|
---
|
|
|
|
title: "Git problem: error: unable to create temporary sha1 filename"
|
|
|
|
kind: article
|
|
|
|
slug: git-problem-error-unable-to-create-temporary-sha1-filename
|
|
|
|
created_at: 2009-10-15
|
|
|
|
tags:
|
|
|
|
- git
|
|
|
|
- prune
|
|
|
|
- repack
|
|
|
|
- fsck
|
|
|
|
---
|
|
|
|
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:
|
|
|
|
|
2013-03-24 21:31:37 +00:00
|
|
|
:::bash
|
2013-03-24 21:28:43 +00:00
|
|
|
git fsck
|
|
|
|
git prune
|
|
|
|
git repack
|
|
|
|
git fsck
|
|
|
|
|
|
|
|
The last fsck should not report any problems.
|