Skip to content

Instantly share code, notes, and snippets.

@benzimmer
Created July 17, 2015 06:11
Show Gist options
  • Save benzimmer/7968599ec15fd20b6aee to your computer and use it in GitHub Desktop.
Save benzimmer/7968599ec15fd20b6aee to your computer and use it in GitHub Desktop.
Create git orphan branch
git checkout --orphan newbranch
git rm -rf .
<do work>
git add your files
git commit -m 'Initial commit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment