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
  • Select an option

  • Save brianray/0c94296a73380a89aff48770b87c8e00 to your computer and use it in GitHub Desktop.

Select an option

Save brianray/0c94296a73380a89aff48770b87c8e00 to your computer and use it in GitHub Desktop.

Revisions

  1. brianray revised this gist Jan 29, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion orphan-branch.sh
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@

    git checkout --orphan code-review
    git rm -rf .
    git ci --allow-empty -m 'Code review - nuke all'
    git commit --allow-empty -m 'Code review - nuke all'
    git push --set-upstream origin code-review
  2. @tebeka tebeka created this gist Sep 24, 2015.
    6 changes: 6 additions & 0 deletions orphan-branch.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # 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