Skip to content

Instantly share code, notes, and snippets.

@sprhawk
Created November 28, 2011 04:04
Show Gist options
  • Save sprhawk/1399047 to your computer and use it in GitHub Desktop.
Save sprhawk/1399047 to your computer and use it in GitHub Desktop.
git command: creating new empty branches
git symbolic-ref HEAD refs/heads/newbranch
rm .git/index
git clean -fdx
<do work>
git add your files
git commit -m 'Initial commit'
http://book.git-scm.com/5_creating_new_empty_branches.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment