When I run git gc on a repository I have, it says
fatal: failed to write ref-pack file
error: failed to run pack-refs
What does this error mean and how do I solve it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
.gitdirectory must be writable by your user and you must have enough free space on your storage device.When Git creates a new pack, it first creates the new pack and after verifying its correctness it will delete the old pack as well as the newly packed loose objects. IOW you have to have at least the current size of your object database available as free space (simplified).