Skip to content

Instantly share code, notes, and snippets.

@tun
Created December 27, 2017 03:27
Show Gist options
  • Save tun/d6a7b0630bc1a262313251c20345529d to your computer and use it in GitHub Desktop.
Save tun/d6a7b0630bc1a262313251c20345529d to your computer and use it in GitHub Desktop.
gh-pages git worktree
git checkout --orphan gh-pages
git commit --allow-empty -m "gh-pages branch worktree"
git checkout master
mkdir -p public/
git worktree add public/ gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment