🔄 同步 2026-03-12 15:55 | 一场soul的创业实验(书稿)
This commit is contained in:
7
scripts/gitea_push_once.sh
Executable file
7
scripts/gitea_push_once.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
# 首次推送 Gitea:先设置 export GITEA_TOKEN=你的Token 再执行本脚本
|
||||
[ -z "$GITEA_TOKEN" ] && echo "请先执行: export GITEA_TOKEN=你的Gitea的Token" && exit 1
|
||||
cd "$(dirname "$0")/.."
|
||||
git remote set-url gitea "http://fnvtk:${GITEA_TOKEN}@open.quwanzhi.com:3000/fnvtk/Mycontent.git"
|
||||
export HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897
|
||||
git push -u gitea main
|
||||
Reference in New Issue
Block a user