Skip to content

Instantly share code, notes, and snippets.

@millisami
Created August 18, 2010 08:28
Show Gist options
  • Save millisami/534010 to your computer and use it in GitHub Desktop.
Save millisami/534010 to your computer and use it in GitHub Desktop.
git symbolic-ref HEAD refs/heads/<newbranchname>
git rm --cached -r .
rm -rf *
git commit --allow-empty -m 'Initial new branch'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment