We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5aebb commit acaa3deCopy full SHA for acaa3de
scripts/sync
@@ -13,7 +13,7 @@ current_branch=$(git rev-parse --abbrev-ref HEAD)
13
14
15
# master分支同步
16
-if [ "$current_branch" = "master" ]; then
+if [ "$current_branch" = "main" ]; then
17
18
# 合并next分支内容到master分之
19
git merge origin/next
@@ -22,7 +22,7 @@ if [ "$current_branch" = "master" ]; then
22
for repoName in "${remoteList[@]}"
23
do
24
echo "-->Pushing to $repoName in master branch..."
25
- git push "$repoName" master
+ git push "$repoName" main
26
done
27
# next分支同步
28
elif [ "$current_branch" = "next" ]; then
@@ -33,4 +33,4 @@ elif [ "$current_branch" = "next" ]; then
33
34
else
35
echo "当前分支是:$current_branch ,只允许在master和next分支上操作,并推送到远程!!!"
36
-fi
+fi
0 commit comments