Skip to content

Commit

Permalink
perf: sync脚本支持-f参数,强制同步
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdapl committed Oct 5, 2024
1 parent cd00b03 commit 132a1a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/sync
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 132a1a4

Please sign in to comment.