summaryrefslogtreecommitdiffstats
path: root/git-gc
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-07-18 09:48:37 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-07-18 09:48:37 +0200
commit7b40892ada15885b8a05438957f94a341a169375 (patch)
treec0602905c5109d437dc210b6d985f3eb679f290b /git-gc
parent16f3a8f7e16284e9982d9fbffd44a06d6dad448e (diff)
downloadbin-7b40892ada15885b8a05438957f94a341a169375.zip
bin-7b40892ada15885b8a05438957f94a341a169375.tar.gz
add git-gc
Diffstat (limited to 'git-gc')
-rwxr-xr-xgit-gc6
1 files changed, 6 insertions, 0 deletions
diff --git a/git-gc b/git-gc
new file mode 100755
index 0000000..e96207c
--- /dev/null
+++ b/git-gc
@@ -0,0 +1,6 @@
+#! /bin/sh
+echo "* prune" && git prune && \
+ echo "* prune-packed" && git prune-packed && \
+ echo "* gc" && git gc --aggressive && \
+ echo "* repack" && git repack -a && \
+ echo "* done"