1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-13 18:00:58 +08:00

perf: sync脚本支持-f参数,强制同步

This commit is contained in:
chufan
2024-10-05 12:38:52 +08:00
parent cd00b032eb
commit 132a1a474f

View File

@@ -22,15 +22,15 @@ if [ "$current_branch" = "master" ]; then
for repoName in "${remoteList[@]}"
do
echo "-->Pushing to $repoName in master branch..."
git push "$repoName" master
git push "$repoName" master "$@"
done
# next分支同步
elif [ "$current_branch" = "next" ]; then
for repoName in "${remoteList[@]}"
do
echo "-->Pushing to $repoName in next branch..."
git push "$repoName" next
git push "$repoName" next "$@"
done
else
echo "当前分支是:$current_branch 只允许在master和next分支上操作并推送到远程"
fi
fi