git cleanup
This commit is contained in:
19
data/git/cleanup.md
Normal file
19
data/git/cleanup.md
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
title: "Clean up a bloated git repo"
|
||||
tags: [ "data", "setup" ]
|
||||
requires: [ "git" ]
|
||||
---
|
||||
|
||||
|
||||
```sh
|
||||
git fsck --full
|
||||
```
|
||||
|
||||
```sh
|
||||
git gc --prune=now --aggressive
|
||||
```
|
||||
|
||||
```sh
|
||||
git repack
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user