Skip to content

Instantly share code, notes, and snippets.

@vonHartz
Last active May 26, 2021 13:14
Show Gist options
  • Save vonHartz/9a18e863e6a371690e9d1e0d7f87db73 to your computer and use it in GitHub Desktop.
Save vonHartz/9a18e863e6a371690e9d1e0d7f87db73 to your computer and use it in GitHub Desktop.
Orphan branch for github pages
$ 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