From b502695b2585264ddd5dc87e156d50465265350d Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 16 Dec 2023 16:28:03 +0800 Subject: [PATCH] force --- .github/workflows/mirror.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index f5114c3..44322cf 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -21,13 +21,13 @@ jobs: git config --global user.name shenjack-action git remote add gitea http://shenjack.top:5100/ARS/ars-tools.git git fetch gitea - $branches = git branch -r | Select-String -Pattern 'origin' + $branches = git branch -r | Select-String -Pattern 'gitea' foreach ($branch in $branches) { - $branchName = $branch -replace 'origin/', '' + $branchName = $branch -replace 'gitea/', '' $branchName = $branchName.Trim() if (!(git branch | Select-String -Pattern $branchName)) { git branch --track $branchName $branch.Trim() } } git pull --all - git push origin --all \ No newline at end of file + git push origin --all --force \ No newline at end of file