Download scripts/push_to_github.sh from Lawless1987/threefold: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/Lawless1987/threefold/resolve/main/scripts/push_to_github.sh
- Command line
-
hf download hf://Lawless1987/threefold/scripts/push_to_github.sh
-
curl -L -o push_to_github.sh https://huggingface.co/Lawless1987/threefold/resolve/main/scripts/push_to_github.sh
579 Bytes
| set -euo pipefail | |
| REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)" | |
| cd "$REPO_ROOT" | |
| OWNER=LAWLESS1987 | |
| NAME=triad | |
| # Create if missing | |
| if ! gh repo view "$OWNER/$NAME" >/dev/null 2>&1; then | |
| gh repo create "$OWNER/$NAME" --public --description "Mandatory three-leg agent memory: tombstone || covenant || JLens (shared task_id, no degrade)" --source . --remote origin --push | |
| else | |
| git remote remove origin 2>/dev/null || true | |
| git remote add origin "https://github.com/$OWNER/$NAME.git" | |
| git push -u origin main | |
| fi | |
| echo "PUSH_OK https://github.com/$OWNER/$NAME" | |