How to Make a Repository Private in Github
- George Apostolov
How to Make a Repository Private in Github: step-by-step guide
Click on your profile icon.
From the drop-down menu, select 'Your repositories'.
Click on the 'New' button.
Create a repository name.
Add a brief description.
Select 'Private' as your desired visibility.
Click 'Create repository' to complete the action.
By following these steps, you can make a repository private in Github.
Quick answer: To make a repository private on GitHub, click your profile icon, select Your repositories, and click New. Enter a repository name and brief description, select Private visibility, and click Create repository.
About this GitHub tutorial
Secure your code on GitHub by setting your repository visibility to private using the repository creation menu. This guide shows how to make a Repository Private in Github in 8 steps, starting with "Click on your profile icon" and finishing with "By following these steps, you can make a repository private in Github". The interactive demo above is a click-through copy of the real GitHub interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does it take to make a Repository Private in Github?
8 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your GitHub data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under GitHub. Related guides: How to Make Github Repository Public, How to Manually Trigger GitHub Action and How to Merge Branch to Main Github. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





