Skip to content

Instantly share code, notes, and snippets.

@reilee
Created February 27, 2020 07:56
Show Gist options
  • Save reilee/aa847711d48337fec7650157d8def849 to your computer and use it in GitHub Desktop.
Save reilee/aa847711d48337fec7650157d8def849 to your computer and use it in GitHub Desktop.
Create empty branch in git
git checkout --orphan EMPTY-BRANCH
git rm -rf .
git commit --allow-empty -m "root commit"
git push origin EMPTY-BRANCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment