The public repositories provided by Github do not allow the creation of private branches, and the method of creating a private branch by copying the repository is documented here.
-
Updated
Nov 16, 2026 - Shell
The public repositories provided by Github do not allow the creation of private branches, and the method of creating a private branch by copying the repository is documented here.
To associate your repository with the fork-private-repository topic, visit your repo's landing page and select "manage topics."