Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pack file remove it in git

Tags:

git

github

gitlab

In one of my server i've a big file like 2G ( pack )in Git. I'read some documentation but i didn't find any information about if you remove it without damage my git repository .

Do you have any idea about that ?

regards

like image 310
joe Avatar asked Mar 28 '18 12:03

joe


1 Answers

If you mean pack files in .git/objects/pack/ then yes there will be damage. These files are essential parts of the git object database. Please do not mess with files in .git/objects/.

If the pack files are too large you need to edit history to remove large files and repack. See these questions and answers: Remove large .pack file created by git, Large pack file git not solved.

like image 175
phd Avatar answered Oct 17 '22 09:10

phd