ossobv / dnsgit

Keep track of DNS server history using a Git repository
GNU General Public License v3.0
8 stars 0 forks source link

Add 'git gc' between runs #2

Open wdoekes opened 2 years ago

wdoekes commented 2 years ago

Without it, we keep lots of loose files around:

# find .git/ -type f | wc -l
179118
# du -sh .git/
818M    .git/

Data accumulated since 2016...

# git gc
Counting objects: 179061, done.
Compressing objects: 100% (179059/179059), done.
Writing objects: 100% (179061/179061), done.
Total 179061 (delta 170696), reused 0 (delta 0)
Removing duplicate objects: 100% (256/256), done.
Checking connectivity: 179061, done.
# find .git/ -type f | wc -l
23
# du -sh .git/
201M    .git/