From b0cde2fe523ef79a2a2081778a2cbf02033a8c84 Mon Sep 17 00:00:00 2001 From: Shaun Hoffer Date: Wed, 2 Oct 2024 21:54:33 -0400 Subject: [PATCH] add a force flag to checkout command --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index c19247e..d131d52 100644 --- a/run.sh +++ b/run.sh @@ -23,10 +23,10 @@ git config --global --add --bool push.autoSetupRemote true git fetch if ! git ls-remote --exit-code --heads origin pages; then - git checkout --orphan pages + git checkout --orphan -f pages git rm -rf . else - git checkout pages + git checkout -f pages fi if ! [ -d "$1" ]; then