Created
February 14, 2012 22:28
-
-
Save brianjlandau/1831069 to your computer and use it in GitHub Desktop.
Start new git branch with no history.
This file contains hidden or 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/my-branch-name | |
| rm .git/index | |
| git clean -fdx | |
| touch README | |
| git add . | |
| git commit -m "Initial Commit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment