avatarPositive Stud

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1712

Abstract

hange visibility’ button.</i></b></p><figure id="2392"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*hpRgL6aGxQsrDcV2NgOtHw.png"><figcaption></figcaption></figure><p id="f89d"><b><i>Step 4: Select the ‘Make private’ option as shown in the image below.</i></b></p><figure id="a57c"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*I4QWHyCHiUa3TG_bBuZfkA.png"><figcaption></figcaption></figure><p id="7478"><b><i>Step 5: Now, provide the repository name which you are willing to make private in the text field as shown in the image below.</i></b></p><figure id="a361"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*oMQbqU1kKmfl18DbegMnNQ.png"><figcaption></figcaption></figure><p id="0b39"><b><i>Step 6: Click on the ‘I understand change repository visibility’ button.</i></b></p><figure id="feaf"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*LWSIkaJ6Q4uVsDA04K6ZcA.png"><figcaption></figcaption></figure><p id="2afe"><b><i>Step 7: Now, you have to provide your GitHub account password for confirming the action of repository settings.</i></b></p><figure id="7ecc"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*8XsBlXp-38BLAnxm7hpy4g.png"><figcaption></figcaption></figure><p id="f060"><b><i>Step 8: Finally, you can see that your public repository has now become a private repository.</i></b></p><figure id="7d8a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*UOMSTWRva6dIHHXLWhryKg.png"><figcaption></figcaption></figure><h1 id="6e0e">Procedure for changing your private repository to a public repository</h1><p id="29ac"><b><i>Step 1: Select the ‘private repository’ which you want to change int

Options

o the ‘public repository’. Then, click on ‘Settings’.</i></b></p><figure id="09f3"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*UOMSTWRva6dIHHXLWhryKg.png"><figcaption></figcaption></figure><p id="cd0b"><b><i>Step 2: In the ‘Settings’ page, scroll down until you find ‘Danger Zone’. Here, click on the ‘Change visibility’ button.</i></b></p><figure id="fb8e"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*WBWDXr6mOHo0yWxKlJ0-Uw.png"><figcaption></figcaption></figure><p id="4e0e"><b><i>Step 3: Now, a pop-up appears after you click on the ‘Change visibility’ button. Here, select the ‘Make public’ option and enter the repository name which you want to change into a public repository.</i></b></p><figure id="a1b1"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*I7guI2r9KBGqag-MohwWkA.png"><figcaption></figcaption></figure><p id="9194"><b><i>Step 4: Now, click on the ‘I understand change repository visibility’ button.</i></b></p><figure id="a2e3"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Vw-L49mUsiZH10wIPnCtRg.png"><figcaption></figcaption></figure><p id="dc20"><b><i>Step 5: Now, you have to provide your GitHub account password for confirming the action of repository settings.</i></b></p><figure id="20bb"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*q3cLK7MDm0CSLRKd88vMaA.png"><figcaption></figcaption></figure><p id="b8f4"><b><i>Step 6: Finally, you can see that your public repository has now become a private repository.</i></b></p><figure id="d813"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*NtamCHwSTRkBzP8achlaxA.png"><figcaption></figcaption></figure></article></body>

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

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’.

Step 3: Here, in ‘Danger Zone’, click on the ‘Change visibility’ button.

Step 4: Select the ‘Make private’ option as shown in the image below.

Step 5: Now, provide the repository name which you are willing to make private in the text field as shown in the image below.

Step 6: Click on the ‘I understand change repository visibility’ button.

Step 7: Now, you have to provide your GitHub account password for confirming the action of repository settings.

Step 8: Finally, you can see that your public repository has now become a private repository.

Procedure for changing your private repository to a public repository

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

Step 2: In the ‘Settings’ page, scroll down until you find ‘Danger Zone’. Here, click on the ‘Change visibility’ button.

Step 3: Now, a pop-up appears after you click on the ‘Change visibility’ button. Here, select the ‘Make public’ option and enter the repository name which you want to change into a public repository.

Step 4: Now, click on the ‘I understand change repository visibility’ button.

Step 5: Now, you have to provide your GitHub account password for confirming the action of repository settings.

Step 6: Finally, you can see that your public repository has now become a private repository.

Public
Private
Repositories
Git
Github
Recommended from ReadMedium