Skip to content

Instantly share code, notes, and snippets.

@zyjibmcn
Created July 22, 2016 06:28
Show Gist options
  • Save zyjibmcn/68d60a746fdb9253acfc4cdc04e0d69a to your computer and use it in GitHub Desktop.
Save zyjibmcn/68d60a746fdb9253acfc4cdc04e0d69a to your computer and use it in GitHub Desktop.
git-create-empty-branch
git checkout --orphan newbranch
git rm -rf .

touch .gitignore
git commit -m "create an empty newbranch"
git push -u origin newbranch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment