g2pS / scripts /push_github.sh
baicai1145's picture
Upload scripts/push_github.sh with huggingface_hub
87dc6dc verified
Raw History Blame Contribute Delete
322 Bytes
#!/bin/bash
# Push to GitHub. Requires auth (gh auth login or SSH remote).
set -e
cd "$(dirname "$0")/.."
git init -q 2>/dev/null || true
git add -A
git commit -qm "g2pS release: small/tiny/nano ONNX models + runtime" || true
git remote remove origin 2>/dev/null || true
git remote add origin "$1"
git push -u origin main