TTBook / commit_changes_hf.sh
Ruben Tsui
Update book content
fb81524
raw
history blame contribute delete
324 Bytes
#!/bin/bash
# Use the first argument as the commit message, or default to "Update book content"
COMMIT_MSG=${1:-"Update book content"}
echo "Staging changes..."
git add .
echo "Committing with message: '$COMMIT_MSG'"
git commit -m "$COMMIT_MSG"
echo "Pushing to Hugging Face Spaces..."
git push origin main
echo "Done!"