Created
May 25, 2021 09:59
-
-
Save giammin/5c77dd3298dc287cd3057e78d5407651 to your computer and use it in GitHub Desktop.
clean git repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote prune origin | |
git reflog expire --expire=now --all | |
git gc --prune=now --aggressive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there is a new git command:
git maintenance run
https://git-scm.com/docs/git-maintenance