Create empty branch on GitHub

I want to create a new GitHub branch, called release.

This branch needs to be empty! However, there is an existing branch with x commits and I don’t want to have its commit history.

The only method I found is to create a local --orphan branch.

5 Answers
5

Leave a Comment