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. In this write-up, we will learn one of the setting changes with an example of changing the GitHub repository from private access to 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 select and go to the repository that you want to change the access for users.
Then, click on the setting as shown below.
Step 2- Go to the Change visibility section which is at the bottom of the setting and inside the Danger zone 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 of the change.
You will get the below confirmation message for the change click on it.
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.
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.
More articles related to Git and GitHub can be found in the following:
- Import Git Commands
- Adding Git Ignore File and Folder Using GitHub Desktop
- How to Give Code Review Feedback on GitHub
- Using Visual Studio 2022 for GitHub Repository