Git Performance - spring cleaning your repository

git

I blogged about "Git Performance Commands" before. Basically these commands are spring cleaning for your git repository. I run them occasionally at work. I love chaining git commands together so here are the commands chained. git fsck --unreachable && git reflog expire --expire=0 --all && git repack -a -d -l && git prune && git gc --aggressive Here is what it looks like ran in the git bash.

Mike Henke

Written by Mike Henke

Mike Henke (pronounced "hang-kee") is a full-stack developer with 25+ years of experience, evolving from ColdFusion to modern frontend frameworks, AI, and cloud technologies. Based in Omaha, he enjoys time with his wife and three children when not coding.