Created
February 25, 2014 10:17
-
-
Save dch/9206335 to your computer and use it in GitHub Desktop.
`git orphan` sets up a new git branch with no parent commit. Needs git 1.8 at least, maybe earlier versions.
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
#!/bin/sh | |
git checkout --orphan $* && git rm -rf . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment