GitHub Repository Visibility Setup

Introduction

In software development writing code, collaborating, and merging code from several developers or contributors, managing versions, and rollbacks are very important and common things. Without using any tools this will be hassling, time-consuming, and almost impossible. There are various code management and version control tools available in the market. Among all Git is a famous and mostly used version control tool in the world. Additionally, sometimes we need to change the setting of the GitHub repository visibility such as from Private to Public and vice versa. Maybe the repository was mistakenly created as private which was supposed to be public and you need to change the visibility later. In this write-up, we will learn one of the GitHub setting changes with an example of changing the GitHub repository from private access to public.

If you are new to Git and GitHub you can refer to the article what is Git, GitHub, and GitHub desktop.

Now, let’s move and follow the below steps to change the repository from Private to Public or vice versa.

Step 1

Login to your GitHub account and select and go to the repository that you want to change the access for users.

Then, click on the setting as shown below.

GitHub Repository Visibility Setup

Step 2

Go to the Change visibility section which is at the bottom of the setting and inside the Danger zone as illustrated below. Always be careful with changing anything in the danger zone.

GitHub Repository Visibility Setup

And then click on Change visibility to Public as depicted below.

GitHub Repository Visibility Setup

In my case, I am changing from Private to Public however you can change from public to private as well.

Step 3 - Confirmation of the change

You will get the below confirmation message for the change click on it.

GitHub Repository Visibility Setup

Then another confirmation will come as shown below, you need to agree to these changes as well.

GitHub Repository Visibility Setup

Then you will get the below confirmation popup, click on make this repository public in my case. Your case can be private based on your change type.

GitHub Repository Visibility Setup

After that, you need to provide your OTP or password this step is based on your GitHub account multifactor authentication. If you don’t have multi-factor authentication enabled in your account you may not require this step. In my case, I have provided the password to confirm it.

GitHub Repository Visibility Setup

Now, you can see the repository has been changed to Public as portrayed below.

GitHub Repository Visibility Setup

Hence, in this way, we can change the visibility of the GitHub repository.

Thanks for reading this write-up. I hope this helps you to change the setting of your repository from private to public and vice versa.

More articles and blogs related to Git and GitHub can be found in the following:

Reference


Similar Articles