88.6k views
0 votes
How to make a repo private in github

User Alex Reid
by
8.3k points

1 Answer

5 votes

Final answer:

To make a GitHub repo private, log into GitHub, navigate to the repo's settings, and use the 'Change repository visibility' option in the Danger Zone section to select 'Private'. Confirm your choice after reading the warning.

Step-by-step explanation:

How to Make a Repo Private on GitHub

To make a repository (repo) private on GitHub, you need to have the correct permissions or ownership of the repository. Assuming that you do, follow these steps:

  1. Log in to your GitHub account and navigate to the main page of the repo that you want to make private.
  2. Click on the Settings tab, which is usually found on the right side of the repo's navigation bar.
  3. Scroll down to the Danger Zone section at the bottom of the settings page.
  4. Find the option labeled Change repository visibility and click on it.
  5. Select Private to make your repo private.
  6. Confirm your choice by reading the warning, enter your repository's name as requested, and then click on the button to confirm the change.
User Leonardorame
by
7.5k points