Download scripts/install_pre-push.sh from cfahlgren1/lean-flt: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/datasets/cfahlgren1/lean-flt/resolve/main/scripts/install_pre-push.sh
- Command line
-
hf download hf://datasets/cfahlgren1/lean-flt/scripts/install_pre-push.sh
-
curl -L -o install_pre-push.sh https://huggingface.co/datasets/cfahlgren1/lean-flt/resolve/main/scripts/install_pre-push.sh
375 Bytes
| # Rename the pre-push sample file if it exists | |
| if [ -f ".git/hooks/pre-push.sample" ]; then | |
| mv .git/hooks/pre-push.sample .git/hooks/pre-push | |
| fi | |
| # Copy the content of scripts/pre-push into .git/hooks/pre-push | |
| cp scripts/pre-push.sh .git/hooks/pre-push | |
| # Make the pre-push hook executable | |
| chmod +x .git/hooks/pre-push | |
| echo "Pre-push hook installed." | |