e0755a58af901c9a5f24b23f55a9780c5929c7b7 galt Thu Apr 29 02:05:28 2021 -0700 adding pre-commit hook to help users find out that the file is too big before they commit, not after they push. diff --git install-hooks.sh install-hooks.sh new file mode 100755 index 0000000..3f96cf2 --- /dev/null +++ install-hooks.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Installs pre-commit hook that ensures attempts to commit files that are +# larger than $limit to your _local_ repo fail, with a helpful error message. +cd "$(dirname "$0")" # location of this script +cd .git/hooks/ +ln -sf ../../pre-commit-prevent-large-files.sh pre-commit