Files
30-seconds-of-code/snippets/optimize-repository.md
2023-04-28 22:15:54 +03:00

389 B

title, type, tags, author, cover, dateModified
title type tags author cover dateModified
Optimize the local repository snippet
repository
chalarangelo automaton 2021-04-13T21:10:59+03:00

Optimizes the local repository.

  • Use git gc --prune=now --aggressive to garbage collect loose objects.
git gc --prune=now --aggressive
git gc --prune=now --aggressive # Optimizes the local repository