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!
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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.