Skip to content

Instantly share code, notes, and snippets.

@RandyBooth
Last active April 3, 2020 14:08
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 RandyBooth/fa3f88113464d45b361126fa0af9e505 to your computer and use it in GitHub Desktop.
Save RandyBooth/fa3f88113464d45b361126fa0af9e505 to your computer and use it in GitHub Desktop.
New empty git branch
git checkout master
git checkout --orphan foo
git rm --cached $(git ls-files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment