checkout orphan branch
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
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