How to Set Repository Visibility to Public or Private: 1-Min Guide

Setting your repository visibility is crucial for managing who can access your code.

Whether you want to collaborate openly with the world or keep things private within your team, switching between public and private is simple.

Let's walk through how to do it with an easy step-by-step demo.

How to Set Repository Visibility to Public or Private

Steps to follow:

1. Navigate to the GitHub repository you want to change the visibility for.

2. At the top of the repository page, click the 'Settings' tab.

3. At the bottom of the settings page, you’ll find the 'Danger Zone' section.

4. To make the repository public, click 'Change visibility' choose 'Public', and confirm.

To make the repository private, click 'Change visibility', choose 'Private', and confirm.

5. GitHub will ask for confirmation before the change. Follow the prompts to proceed.

That's it! This is how to set a repository's visibility to 'Public' or 'Private'.

Conclusion

Now that you know how to adjust your repository visibility, you can confidently share your project or keep it private, depending on your needs.

It's a quick change, but one that gives you full control over who sees your work.

Still have questions?

Send an email to archana@leadwalnut.com, OR

Book a FREE consultation with an expert developer here.