Array
University of Oregon

Git Orphan Branches

The following description is from the git-checkout Manual Page:

git checkout --orphan new_branch_name

Create a new orphan branch named new_branch_name, and switch to it.

The first commit made on this new branch will have no parents and it will be the root of a new history totally disconnected from all the other branches and commits.


Github Pages

Github User Pages use the repo’s master branch. Github Project Pages use an orphan branch.

Skip to toolbar