Skip to main content

Git problem: error: unable to create temporary sha1 filename

·49 words·1 min· ·
Git Prune Repack Fsck
Ariejan de Vroom
Author
Ariejan de Vroom
Jack of all Trades, Professional Software Craftsman

I got git problem: error: unable to create temporary sha1 filename 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.

Related

Codaset.com: Github, but better
·645 words·4 mins
Git Codaset Github
Git Tag Mini Cheat Sheet Revisited
·425 words·2 mins
Git Cheat Sheet Tags
Git Tag Mini Cheat Sheet
·70 words·1 min
Git Cheat Sheet Tags