Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to clean up the git repo and reduce its disk size

git remote prune origin && git repack && git prune-packed && git reflog expire --expire=1.month.ago && git gc --aggressive
Source by gitbetter.substack.com #
 
PREVIOUS NEXT
Tagged: #How #clean #git #repo #reduce #disk #size
ADD COMMENT
Topic
Name
5+7 =