Skip to content

Instantly share code, notes, and snippets.

@mslinn
Forked from evnm/gitm
Created August 14, 2013 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mslinn/6227920 to your computer and use it in GitHub Desktop.
Save mslinn/6227920 to your computer and use it in GitHub Desktop.
#! /bin/sh
git fetch
git remote prune origin
git repack -a -d --depth=250 --window=250
@mslinn
Copy link
Author

mslinn commented Aug 14, 2013

run this script periodically to prevent rot in large Git repos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment