Created
December 10, 2020 15:12
-
-
Save leonlaser/76faadfa5f228f14c5f922be2433075d to your computer and use it in GitHub Desktop.
[Local Repostiroy Cleanup] #git #cli #bash
This file contains hidden or 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
# source: https://gitbetter.substack.com/p/how-to-clean-up-the-git-repo-and | |
git remote prune origin && git repack && git prune-packed && git reflog expire --expire=1.month.ago && git gc --aggressive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment