Skip to content

Instantly share code, notes, and snippets.

@tebeka
Created September 24, 2015 12:40
Show Gist options
  • Save tebeka/530a8cee7238aa445ae2 to your computer and use it in GitHub Desktop.
Save tebeka/530a8cee7238aa445ae2 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 ci --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