How to make your public repository as private and vice versa in GitHub?

Positive Stud
3 min readAug 1, 2020

Fundamentals of Git and GitHub

While creating a repository in GitHub, according to requirement, the repository is made either public or private but later on the requirements of an individual can change as well due to which the repository settings might have to be changed. Hence, in this blog, I will be discussing how you can make your public repository as a private repository and vice versa. But first of all, let’s have an overview of what does public and private repository refers to in GitHub.

Public Repository

Public repository refers to those repositories which can be accessed by any people all around the world who use GitHub.

Private Repository

Private repository refers to those repositories that can be accessed only by yourself and the individuals with whom you have shared the repository.

Procedure for changing your public repository as a private repository

Step 1: Select the ‘public repository’ which you want to change into ‘private repository’. Then, click on ‘Settings’

Step 2: Now, scroll down and go to the ‘Danger Zone’.

--

--

Positive Stud

Cloud Computing | Data Science | Mobile Application Development | Artificial Intelligence | Python Programming | Soft Skills | Many more…