Scroll to navigation

GH-REPO-EDIT(1) GitHub CLI manual GH-REPO-EDIT(1)

NAME

gh-repo-edit - Edit repository settings

SYNOPSIS

gh repo edit [<repository>] [flags]

DESCRIPTION

Edit repository settings.

To toggle a setting off, use the --<flag>=false syntax.

Note that changing repository visibility to private will cause loss of stars and watchers.

OPTIONS

Add repository topic

Allow forking of an organization repository

Allow a pull request head branch that is behind its base branch to be updated

Set the default branch name for the repository

Delete head branch when pull requests are merged

Description of the repository

Enable auto-merge functionality

Enable discussions in the repository

Enable issues in the repository

Enable merging pull requests via merge commit

Enable projects in the repository

Enable merging pull requests via rebase

Enable merging pull requests via squashed commit

Enable wiki in the repository

Repository home page URL

Remove repository topic

Make the repository available as a template repository

Change the visibility of the repository to {public,private,internal}

EXAMPLE

# enable issues and wiki
gh repo edit --enable-issues --enable-wiki
# disable projects
gh repo edit --enable-projects=false

SEE ALSO

gh-repo(1)

Jun 2024 GitHub CLI v2.51.0