Armaan Brar
Armaan Brar

Reputation: 29

How to make private repository public using the command line interface?

I am submitting a task to a bot. I can't see the settings tab. Therefore, I wanted to use command line to execute the command .

How can I make my private repository public using the git bash command line?

Upvotes: 0

Views: 1836

Answers (2)

Markus Meyer
Markus Meyer

Reputation: 3937

You can do this with the GitHub Cli:

gh repo edit --accept-visibility-change-consequences --visibility public

Upvotes: 6

Shankar
Shankar

Reputation: 360

Using git command I don't think it's possible. You can use GitHub cli repo edit command : https://cli.github.com/manual/gh_repo_edit or you can directly use GitHub API'S to accomplish this.

Upvotes: 0

Related Questions