Skip to content

Instantly share code, notes, and snippets.

@inky
Created February 20, 2009 17:57
Show Gist options
  • Save inky/67599 to your computer and use it in GitHub Desktop.
Save inky/67599 to your computer and use it in GitHub Desktop.
Create an empty git branch (kinda dodgy)
git symbolic-ref HEAD refs/heads/$newbranch
rm .git/index
git clean -fdx
#
# git-add files, then git-commit to finish creating the branch
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment