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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user