Skip to content

Instantly share code, notes, and snippets.

@aebsr
Created June 10, 2013 15:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aebsr/5749568 to your computer and use it in GitHub Desktop.
checkout orphan branch
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