Skip to content

Commit

Permalink
chore(ci): reset and clean before checking out
Browse files Browse the repository at this point in the history
  • Loading branch information
Forrest committed Apr 8, 2022
1 parent 5554240 commit 26dc4c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Utilities/ci/reset-gh-pages-history.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ trap 'exit' ERR

curbranch="$(git branch --show-current)"

git reset --hard
git clean -dxf
git checkout gh-pages
git checkout --orphan tmp
git commit -m "vtk.js website"
git branch -D gh-pages
git branch -m gh-pages
git push -f origin gh-pages

git checkout "$curbranch"
git checkout "$curbranch"

0 comments on commit 26dc4c7

Please sign in to comment.