Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3189444a33
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (12 sloc) 0.43 kB
#!/bin/sh
# The job of git-flush is to recompactify your repository to be as small
# as possible, by dropping all reflogs, stashes, and other cruft that may
# be bloating your pack files.
rm -fr .git/refs/original
perl -i -ne 'print unless /refs\/original/;' .git/info/refs .git/packed-refs
git reflog expire --expire=0 --all
if [ "$1" = "-f" ]; then
git stash clear
fi
git repack -adf #--window=200 --depth=50
git prune
Jump to Line
Something went wrong with that request. Please try again.