Skip to content

Instantly share code, notes, and snippets.

@brianray
Forked from tebeka/orphan-branch.sh
Created January 29, 2018 03:28
Show Gist options
  • Save brianray/0c94296a73380a89aff48770b87c8e00 to your computer and use it in GitHub Desktop.
Save brianray/0c94296a73380a89aff48770b87c8e00 to your computer and use it in GitHub Desktop.
Create Empty Orphan Branch for Code Review
# Create empty orphan branch for code review
git checkout --orphan code-review
git rm -rf .
git commit --allow-empty -m 'Code review - nuke all'
git push --set-upstream origin code-review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment