Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 445 Bytes

TRUNCK_BRANCH.md

File metadata and controls

22 lines (15 loc) · 445 Bytes

Trunch gh-pages branch

The branch is going to expand as every commit will trigger new rebuild all websites static files.

We need to trunc it periodically.

  1. Check out to gh-pages and find the latest commit ID.
git checkout gh-pages
git pull <upstream> gh-pages
git log
  1. Assume the commit ID is COMMIT_ID
git checkout --orphan temp COMMIT_ID
git commit -m "Truncate history"
git rebase --onto temp COMMIT_ID gh-pages