Skip to content

Commit

Permalink
sync to main
Browse files Browse the repository at this point in the history
  • Loading branch information
valiantlynx committed Sep 18, 2024
1 parent 9e354c5 commit bb611ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ else
git checkout -b $NEW_BRANCH
fi

git reset --hard HEAD
# Fetch the latest changes from the remote
git fetch origin

# Reset the branch to match the state of origin/main
echo "Resetting branch to match the state of origin/main..."
git reset --hard origin/main

find . -mindepth 1 -not -path "./build*" -not -path "./.git*" -not -name ".env" -exec rm -rf {} + 2>/dev/null \
&& (mv build/* build/.* . 2>/dev/null || true) \
&& rmdir build 2>/dev/null
Expand Down

0 comments on commit bb611ab

Please sign in to comment.