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 3189444 commit 9f8c611Copy full SHA for 9f8c611
git-flush
@@ -5,7 +5,12 @@
5
# be bloating your pack files.
6
7
rm -fr .git/refs/original
8
-perl -i -ne 'print unless /refs\/original/;' .git/info/refs .git/packed-refs
+if [ -f .git/info/refs ]; then
9
+ perl -i -ne 'print unless /refs\/original/;' .git/info/refs
10
+fi
11
+if [ -f .git/packed-refs ]; then
12
+ perl -i -ne 'print unless /refs\/original/;' .git/packed-refs
13
14
15
git reflog expire --expire=0 --all
16
0 commit comments