- Open the repository's page on GitHub
- Click the Settings button
- Click Make private
- Read the warnings and follow the instructions to confirm you understand the ramifications of making the repository private
Tip: If you are on the free plan, or have no private repositories available, you will need to upgrade before you can switch the repository to private.
When a public repository is changed to a private one, all of the original forks remain public.