We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a68402 commit cfd22bdCopy full SHA for cfd22bd
git-flush
@@ -4,14 +4,16 @@
4
# as possible, by dropping all reflogs, stashes, and other cruft that may
5
# be bloating your pack files.
6
7
-rm -fr .git/refs/original
8
-rm -fr .git/refs/snapshots
+/bin/rm -fr .git/refs/original
+/bin/rm -fr .git/refs/snapshots
9
10
if [ -f .git/info/refs ]; then
11
perl -i -ne 'print unless /refs\/original/;' .git/info/refs
12
+ perl -i -ne 'print unless /refs\/snapshots/;' .git/info/refs
13
fi
14
if [ -f .git/packed-refs ]; then
15
perl -i -ne 'print unless /refs\/original/;' .git/packed-refs
16
+ perl -i -ne 'print unless /refs\/snapshots/;' .git/packed-refs
17
18
19
git reflog expire --expire=0 --all
0 commit comments