Dev Tools · 1h ago
How to Make a GitHub Repo Private Using CLI
This tutorial shows developers how to change a public GitHub repository to private using the GitHub CLI (gh) command. It covers prerequisites like installing and authenticating gh, and the specific command with the required flag to accept visibility change consequences. The article also warns that making a repo private does not retroactively remove exposed sensitive data.
Meridian48 take
A straightforward how-to for a common task, but the real news is GitHub's requirement to explicitly acknowledge consequences—a reminder that visibility changes can break forks and integrations.
Read the full reporting
How to Change a Public Repository to Private Using GitHub CLI →
DEV Community
github-clirepository-visibility