Files
30-seconds-of-code/git/snippets/optimize-repository.md
2023-05-01 22:28:09 +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