We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f94229f commit 3b9d9f5Copy full SHA for 3b9d9f5
.github/workflows/sync.yml
@@ -77,7 +77,8 @@ jobs:
77
echo "Remote branch ${{ inputs.target_sync_branch }} exists."
78
# 创建一个临时分支来fetch远程分支的内容
79
git fetch upstream ${{ inputs.upstream_sync_branch }}:temp_${{ inputs.upstream_sync_branch }}
80
- git branch ${{ inputs.target_sync_branch }} temp_${{ inputs.upstream_sync_branch }} # 创建新分支
+ git branch origin -D ${{ inputs.target_sync_branch }} # 强制删除本地分支
81
+ git branch origin ${{ inputs.target_sync_branch }} temp_${{ inputs.upstream_sync_branch }} # 创建新分支
82
# 强制删除临时分支,没必要
83
# git branch -D temp_${{ inputs.upstream_sync_branch }}
84
# 推送新分支到远程仓库
0 commit comments