Step 1: Sign in to GitHub
- Open your web browser and navigate to github.com.
- Click the Sign in button in the top-right corner.
- Enter your GitHub username and password, then click Sign in.
Step 2: Navigate to your repository
- Once signed in, click your profile picture in the top-right corner and select Your repositories.
- Browse the list and click the name of the repository you want to make public.
Step 3: Access the repository settings
- Inside the repository, click the Settings tab in the row of tabs at the top (Code, Issues, Pull requests, …).
Step 4: Change the repository visibility
- Scroll down to the Danger Zone section at the bottom of the Settings page.
- Find the Change repository visibility subsection and click Change visibility.
- In the confirmation dialog that appears, select Make public.
- Type the repository name exactly as shown to confirm your action.
- Click the confirmation button (for example, I understand, make this repository public).
Step 5: Verify the change
- After the change completes, you’ll see a green banner confirming that the repository is now public.
- On the repository’s main page, you’ll also see a Public label next to the repository name.
Step 6: (Optional) Use GitHub CLI to make the repository public
- Install GitHub CLI if you haven’t already (see cli.github.com).
- Authenticate by running
gh auth login
and following the prompts.
- Execute the following command, replacing OWNER and REPO with your GitHub username and repository name:
gh repo edit OWNER/REPO --visibility public
Step 7: Confirm via CLI output
- The CLI will display a success message indicating the repository visibility has been updated to public.
- You can verify on GitHub or by running
gh repo view OWNER/REPO
.