Created
November 28, 2011 04:04
-
-
Save sprhawk/1399047 to your computer and use it in GitHub Desktop.
git command: creating new empty branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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