Skip to content

Instantly share code, notes, and snippets.

@zerodevx
Last active April 15, 2021 17:26
Show Gist options
  • Save zerodevx/59186234e93daa6240253dce4d1b69a0 to your computer and use it in GitHub Desktop.
Save zerodevx/59186234e93daa6240253dce4d1b69a0 to your computer and use it in GitHub Desktop.
By far the easiest way to create an orphan branch in git - hands down 👐
# Checkout a new branch with all files removed
git switch --orphan <branch name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment