git checkout --orphan newbranch
git rm -rf .
touch .gitignore
git commit -m "create an empty newbranch"
git push -u origin newbranch
Created
July 22, 2016 06:28
-
-
Save zyjibmcn/68d60a746fdb9253acfc4cdc04e0d69a to your computer and use it in GitHub Desktop.
git-create-empty-branch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment