Skip to content

Instantly share code, notes, and snippets.

View ercnshngit's full-sized avatar

Ercan ercnshngit

View GitHub Profile
@lajlev
lajlev / worktree-publish-to-gh-pages.md
Created March 23, 2020 11:48 — forked from ErickPetru/worktree-publish-to-gh-pages.md
Publishing a `dist` folder from `master` branch using **worktree** feature to `gh-pages` branch.

Setup

First of all, you need to have a gh-pages. If you don't have, create:

git branch gh-pages

This makes a branch based on the master HEAD. It would be okay but the files and the git history of master branch are not meaningful on gh-pages branch.