Use gh repo edit to make a GitHub repository public, private, or internal. Includes the required confirmation flag, checks, permissions, and errors.