Download checkgit.sh from merve/git-101: direct link, hf CLI and curl.
- Browser
- Download file 156 Bytes
-
https://huggingface.co/spaces/merve/git-101/resolve/main/checkgit.sh
- Command line
-
hf download hf://spaces/merve/git-101/checkgit.sh
-
curl -L -o checkgit.sh https://huggingface.co/spaces/merve/git-101/resolve/main/checkgit.sh
156 Bytes
| GIT_STATUS=$(git status --porcelain | wc -l ) | |
| if [[ GIT_STATUS -ne 0 ]]; then | |
| echo "${1:-Source files were modified}" | |
| git status | |
| exit $GIT_STATUS | |
| fi; | |