Skip to content

Commit

Permalink
Compact .git folder
Browse files Browse the repository at this point in the history
  • Loading branch information
aetonsi committed Jan 2, 2024
1 parent 8ef1a54 commit 4465b83
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions devops/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@

## Commands

### Compact `.git` folder

Reduces the size of the `.git` folder by cleaning up cached unuseful thingies.

```shell
git maintenance run --auto
git gc --aggressive --prune=now
git reflog expire --expire=now --all
```

### `git log` with the cutest formatting

```powershell
Expand Down

0 comments on commit 4465b83

Please sign in to comment.