Skip to content

Instantly share code, notes, and snippets.

@jelloleaf
jelloleaf / private_fork.md
Last active April 3, 2023 23:26 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

Github does not allow the creation of private forks for public repositories.

The correct way of creating a private fork by duplicating the repo

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)
    git clone --bare https:/github.com/user/repo-name.git