diff --git a/.github/workflows/sponsors-maintainers-man-completions.yml b/.github/workflows/sponsors-maintainers-man-completions.yml index 10a200468e94e..bece072bfc64b 100644 --- a/.github/workflows/sponsors-maintainers-man-completions.yml +++ b/.github/workflows/sponsors-maintainers-man-completions.yml @@ -70,13 +70,13 @@ jobs: if git ls-remote --exit-code --heads origin "${BRANCH}" then - git checkout "${BRANCH}" + git checkout --force "${BRANCH}" git checkout "README.md" \ "docs/Manpage.md" \ "manpages/brew.1" \ "completions" else - git checkout --no-track -B "${BRANCH}" origin/master + git checkout --force --no-track -B "${BRANCH}" origin/master fi if brew update-sponsors