Introduction

In software development writing code, collaborating, and merging code from several developers or contributors, managing versions, 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 the 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 from Private to Public and vice versa.. In this write-up, we will learn one of the setting changes with an example of changing the GitHub repository from private access to the public.

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 go to the repository where you want to change the access for users.

Then click on the setting as sown below.

Step 2- Go to Change visibility which is inside the Danger zone area as illustrated below.

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

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

Step 3- Confirmation for the change.

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

Then another confirmation will come as shown below, you need to agree to these changes as well.
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.

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

After that, you can see the repository is changed to Public as portrayed below.

Thanks for reading this write-up. I hope this helps you to change the setting of your repository.

Leave a Reply

Your email address will not be published.