Files
30-seconds-of-code/snippets/git/s/optimize-repository.md
2023-05-07 16:07:29 +03:00

403 B

title, type, language, tags, author, cover, dateModified
title type language tags author cover dateModified
Optimize the local repository snippet git
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