From 1c71ced9950aaf7cc642021cb64052329722a64d Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 7 Feb 2024 11:03:02 +0000 Subject: [PATCH] Reset the branch after deploying --- tools/branch-deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/branch-deploy.sh b/tools/branch-deploy.sh index df1cdfb..ff61d1e 100755 --- a/tools/branch-deploy.sh +++ b/tools/branch-deploy.sh @@ -40,4 +40,7 @@ for BRANCH in $(git for-each-ref --format='%(refname:short)' refs/heads); do rm -rf "${TEMP_FOLDER}" done -echo "" >> "${INDEX_PAGE}" \ No newline at end of file +echo "" >> "${INDEX_PAGE}" + +# Reset the repo back to main +git reset --hard > /dev/null \ No newline at end of file