2016-07-05 01:17:58 -04:00
# Repository Management
2023-08-19 14:24:12 -04:00
> [!IMPORTANT]
2016-07-05 01:17:58 -04:00
> New as of 0.6.0
```
2017-01-14 22:38:27 +01:00
repo:gc <app> # Runs 'git gc --aggressive' against the application's repo
2016-07-05 01:17:58 -04:00
repo:purge-cache <app> # Deletes the contents of the build cache stored in the repository
```
The repository plugin is meant to allow users to perform management commands against a repository.
2016-09-03 05:31:16 -04:00
## Usage
### Git Garbage Collection
2016-07-05 01:17:58 -04:00
2017-01-14 22:38:27 +01:00
This will run a git gc --aggressive against the applications repo. This is performed on the Dokku host, and not within an application container.
2016-07-05 01:17:58 -04:00
```shell
dokku repo:gc node-js-app
```
```
Counting objects: 396, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (365/365), done.
Writing objects: 100% (396/396), done.
Total 396 (delta 79), reused 315 (delta 0)
```
2016-09-03 05:31:16 -04:00
### Clearing Application cache
2016-07-05 01:17:58 -04:00
Building containers with buildpacks currently results in a persistent `cache` directory between deploys. If you need to clear this cache directory for any reason, you may do so by running the following shell command:
```shell
dokku repo:purge-cache node-js-app
```