Skip to content

Instantly share code, notes, and snippets.

@leonlaser
Created December 10, 2020 15:12
Show Gist options
  • Save leonlaser/76faadfa5f228f14c5f922be2433075d to your computer and use it in GitHub Desktop.
Save leonlaser/76faadfa5f228f14c5f922be2433075d to your computer and use it in GitHub Desktop.
[Local Repostiroy Cleanup] #git #cli #bash
# 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