---
title: "Discussion on \"Compress and cleanup a git repository\" | Hashnode"
description: "Discussion on \"Compress and cleanup a git repository\". git reflog expire --expire=now --all\ngit gc --auto --aggressive --prune=now\n\nFrom nvm/install.sh"
url: "https://hashnode.com/posts/compress-and-cleanup-a-git-repository/67c048ff3a42878317686bad"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Compress and cleanup a git repository](https://andiradulescu.hashnode.dev/compress-and-cleanup-a-git-repository?utm_source=hashnode&utm_medium=feed)

git reflog expire --expire=now --all git gc --auto --aggressive --prune=now From nvm/install.sh

Feb 27, 2025 · 1 min read · andiradulescu.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)

## Written by

[Andi Radulescu](https://hashnode.com/@andiradulescu)

@andiradulescu

  
[View profile](https://hashnode.com/@andiradulescu)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
