- 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.