Files
ai_live_chatbot/1_upload_to_gitEa.sh
2026-05-17 15:30:11 +05:30

14 lines
330 B
Bash

#!/bin/bash
set -e
source "$(dirname "$0")/.env"
COMMIT_MSG="${1:-update}"
git remote remove origin 2>/dev/null || true
git remote add origin https://${GITEA_USER}:${GITEA_TOKEN}@${GITEA_REPO_URL#https://}
git add -A
git commit -m "$COMMIT_MSG" || echo "nothing to commit"
git branch -M main
git push -u origin ${GITEA_BRANCH}