Add optimize repository snippet

This commit is contained in:
Chalarangelo
2021-04-08 19:42:43 +03:00
parent 99493412ae
commit ded483c79a

View File

@ -0,0 +1,16 @@
---
title: Optimize the local repository
tags: repository,advanced
---
Optimizes the local repository.
- Use `git gc --prune=now --aggressive` to garbage collect loose objects.
```sh
git gc --prune=now --aggressive
```
```sh
git gc --prune=now --aggressive # Optimizes the local repository
```