If you have a paid account, you can convert your public repositories to private ones.

Tip: If you have a free account, you will need to upgrade before you can switch the repository to private.

Warning: When a public repository is made private, public forks of the public repository are detached and put into a new network. They are not made private. For more information, see "What happens to forks when a repository is deleted or changes visibility?"

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. Repository settings button

  3. Click Make private. Make Private button

  4. Read the warnings. Warnings popup
  5. Type the name of the repository that you want to make private.
  6. Click I understand, make this repository private. Warning Popup