add force

This commit is contained in:
shenjack 2023-12-16 16:18:19 +08:00
parent 2541179d38
commit 8eeef6737c
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -15,7 +15,6 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: clone remote - name: clone remote
shell: pwsh
run: | run: |
git config --global user.email 3695888@qq.com git config --global user.email 3695888@qq.com
git config --global user.name shenjack-action git config --global user.name shenjack-action
@ -24,5 +23,5 @@ jobs:
for branch in $(git branch -r | grep -v '\->'); do for branch in $(git branch -r | grep -v '\->'); do
git branch --track ${branch#origin/} $branch git branch --track ${branch#origin/} $branch
done done
git pull --all git pull --all --tags
git push origin --all git push origin --all --tags --force