]> git.phdru.name Git - git-scripts.git/commitdiff
Add script `speedup`
authorOleg Broytman <phd@phdru.name>
Wed, 12 May 2021 08:11:41 +0000 (11:11 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 12 May 2021 08:11:41 +0000 (11:11 +0300)
speedup [new file with mode: 0755]

diff --git a/speedup b/speedup
new file mode 100755 (executable)
index 0000000..6e91eee
--- /dev/null
+++ b/speedup
@@ -0,0 +1,6 @@
+#! /bin/sh
+# See https://stackoverflow.com/a/24045966/7976758
+
+git config --global core.preloadindex true &&
+git config --global core.fscache true &&
+exec git config --global gc.auto 256