Skip to content

Instantly share code, notes, and snippets.

@giammin
Created May 25, 2021 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giammin/5c77dd3298dc287cd3057e78d5407651 to your computer and use it in GitHub Desktop.
Save giammin/5c77dd3298dc287cd3057e78d5407651 to your computer and use it in GitHub Desktop.
clean git repo
git remote prune origin
git reflog expire --expire=now --all
git gc --prune=now --aggressive
@giammin
Copy link
Author

giammin commented May 25, 2021

there is a new git command: git maintenance run

https://git-scm.com/docs/git-maintenance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment