diff --git a/publish.sh b/publish.sh index 4e4724c8..78268c8c 100755 --- a/publish.sh +++ b/publish.sh @@ -20,7 +20,7 @@ touch output_${SITE_ENV}/.nojekyll # Add, commit and push the changes. cd output_${SITE_ENV} cp -R ../.git . -git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH +git checkout -f $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH git add --all . git commit -m "Re-generate site. $SHA" git push $SSH_REPO $TARGET_BRANCH