Created
June 10, 2013 15:15
-
-
Save aebsr/5749568 to your computer and use it in GitHub Desktop.
checkout orphan branch
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
coo() { | |
if [ $1 ]; then | |
git checkout --orphan $1; | |
git rm -rf .; | |
touch README.md; | |
git add README.md; | |
git commit -m 'orphan branch initial commit'; | |
git push --set-upstream origin $1; | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment