6

Git problem: error: unable to create temporary sha1 filename

 3 years ago
source link: https://www.devroom.io/2009/10/15/git-problem-error-unable-to-create-temporary-sha1-filename/?utm_campaign=Feed%3A+ariejan+%28ariejan%7Cdevroom.io%29
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Git problem: error: unable to create temporary sha1 filename

Posted: 2009-10-15 - Last updated: 2019-06-05

Tagged git prune repack fsck

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.

My site is free of ads and trackers. I record privacy-respecting usage statistics with Fathom.

Was this post helpful to you? Why not ☕ Buy me a coffee

Copyright © 1999-2020 Ariejan de Vroom <[email protected]>

Live now; make now always the most precious time. Now will never come again.
    – Jean-Luc Picard


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK