Report this

What is the reason for this report?

git version 14.05 and @hash files with name tmp_pack..

Posted on August 10, 2021

Hello I have a lot of file named “tmp_pack…” file on folder var/opt/gitlab/git-data/repositories/@hashed/78/5f/785fdd09.git/objects/pack Which process create this daily generated files and can I delete this file without backup? Regards hpzech



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

The files you’re referring to are Pack files and they are a part of Git’s internal mechanism to store repository data efficiently. Git periodically repacks loose objects into a single “pack file” to save space and improve performance.

It generally shouldn’t be necessary to manually delete these files. However, if you’re facing an issue with disk consumption, you can run a manual garbage collection using git gc

Warning: Before doing so, ensure to have a backup and that no Git processes are running to prevent data loss or corruption.

Here’s a link to DigitalOcean’s documentation for more information: How To Connect to Droplets with Git

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.