Skip to content

Instantly share code, notes, and snippets.

@khufkens
Created February 12, 2023 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khufkens/daba3bc828ceb64cdd465696895bcd57 to your computer and use it in GitHub Desktop.
Save khufkens/daba3bc828ceb64cdd465696895bcd57 to your computer and use it in GitHub Desktop.
Create clean gh-pages branch
git checkout --orphan gh-pages
# preview files to be deleted
git rm -rf --dry-run .
# actually delete the files
git rm -rf .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment