Spaces:
Sleeping
Sleeping
Download scripts/git_daily_changes.sh from Kentlo/cert-study-app: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/Kentlo/cert-study-app/resolve/main/scripts/git_daily_changes.sh
- Command line
-
hf download hf://spaces/Kentlo/cert-study-app/scripts/git_daily_changes.sh
-
curl -L -o git_daily_changes.sh https://huggingface.co/spaces/Kentlo/cert-study-app/resolve/main/scripts/git_daily_changes.sh
325 Bytes
| set -euo pipefail | |
| DAY="${1:-$(date +%F)}" | |
| NEXT_DAY="$(date -j -v+1d -f "%Y-%m-%d" "${DAY}" +%F 2>/dev/null || date -d "${DAY} +1 day" +%F)" | |
| echo "Git changes for ${DAY}" | |
| echo | |
| git log \ | |
| --since="${DAY} 00:00" \ | |
| --until="${NEXT_DAY} 00:00" \ | |
| --date=short \ | |
| --pretty=format:'%h %ad %s' \ | |
| --stat | |