diff --git a/commit.sh b/commit.sh index a92c570..c238a3b 100755 --- a/commit.sh +++ b/commit.sh @@ -37,10 +37,10 @@ if [ $? -ne 0 ]; then fi # 推送到远程仓库 -git push -u origin master +git push -u origin main if [ $? -ne 0 ]; then echo "❌ git push 失败!请检查远程仓库设置。" exit 1 fi -echo "✅ 代码提交成功!" \ No newline at end of file +echo "✅ 代码提交成功!"