From a210fca0f69a5457d511e563762795fec4621267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E6=97=AD=E6=A5=A0?= Date: Mon, 22 Sep 2025 15:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20push=5Fto=5Fgitea.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push_to_gitea.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 push_to_gitea.sh diff --git a/push_to_gitea.sh b/push_to_gitea.sh deleted file mode 100755 index 6480492..0000000 --- a/push_to_gitea.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -echo "将项目推送到Gitea仓库的脚本" -echo "==============================" -echo "" -echo "1. 确保您已经在Gitea上创建了仓库: http://218.84.152.14:65001/huxunan/gitpm" -echo "" -echo "2. 运行以下命令推送代码:" -echo "" -echo "git remote -v" -echo "" -echo "git push -u origin main" -echo "" -echo "如果推送失败,可以尝试以下方式:" -echo "" -echo "方式1 - 使用用户名密码:" -echo "git push https://huxunan:YOUR_PASSWORD@218.84.152.14:65001/huxunan/gitpm.git main" -echo "" -echo "方式2 - 使用Access Token (推荐):" -echo "1. 在Gitea中创建Personal Access Token: 设置 -> 应用 -> 生成新的令牌" -echo "2. 使用token推送:" -echo "git push https://huxunan:YOUR_TOKEN@218.84.152.14:65001/huxunan/gitpm.git main" -echo "" -echo "当前仓库状态:" -git status -echo "" -echo "远程仓库配置:" -git remote -v \ No newline at end of file