I create this branch with the following steps (see How to Create a New and Empty Branch in Git)
-
Create a bland branch named as demo
$ git checkout --orphan demo
-
Remove all files in git
$ git rm -rf
-
Edit
.gitignore
to ignore the files -
Add
README.md
into new branch$ touch README.md $ git add .
-
Commit to the new branch
$ git commit -m "init commit"
The original master was deleted from GitHub with the following steps
-
Log into GitHub and find your repository
-
Click on the Admin button and set the default branch to demo
Now you are free to delete the master branch. See Deleting your master branch — pydagogue 0.2 documentation