We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 168ce63 commit f199a6aCopy full SHA for f199a6a
1 file changed
scripts/update-submodule.sh
@@ -0,0 +1,25 @@
1
+#!/usr/bin/env bash
2
+
3
+# 更新 flow-frontend 子模块到最新 main 分支
4
5
+echo "正在更新 flow-frontend 子模块..."
6
7
+# 进入子模块目录
8
+cd ../flow-frontend
9
10
+# 切换到 main 分支并拉取最新代码
11
+echo "切换到 main 分支并拉取最新代码..."
12
+git checkout main
13
+git pull origin main
14
15
+# 返回项目根目录
16
+cd ../
17
18
+# 更新子模块引用
19
+echo "更新子模块引用..."
20
+git add flow-frontend
21
+git commit -m "Update flow-frontend to latest main"
22
23
+echo ""
24
+echo "✅ flow-frontend 已更新到最新 main 分支"
25
+echo "请运行 'git push' 推送更改到远程仓库"
0 commit comments