Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Created February 12, 2024 01:11
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 matthewjberger/88e4b0c09a8fadbf795e4260a5fd5e21 to your computer and use it in GitHub Desktop.
Save matthewjberger/88e4b0c09a8fadbf795e4260a5fd5e21 to your computer and use it in GitHub Desktop.
Create an orphan gh-pages branch in git
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "Initializing gh-pages branch"
git push origin gh-pages
git checkout main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment