.nh .TH "GH-REPO-EDIT" "1" "Oct 2024" "GitHub CLI 2.58.0" "GitHub CLI manual" .SH NAME gh-repo-edit - Edit repository settings .SH SYNOPSIS \fBgh repo edit [] [flags]\fR .SH DESCRIPTION Edit repository settings. .PP To toggle a setting off, use the \fB--=false\fR syntax. .PP Note that changing repository visibility to private will cause loss of stars and watchers. .SH OPTIONS .TP \fB--add-topic\fR \fB\fR Add repository topic .TP \fB--allow-forking\fR Allow forking of an organization repository .TP \fB--allow-update-branch\fR Allow a pull request head branch that is behind its base branch to be updated .TP \fB--default-branch\fR \fB\fR Set the default branch name for the repository .TP \fB--delete-branch-on-merge\fR Delete head branch when pull requests are merged .TP \fB-d\fR, \fB--description\fR \fB\fR Description of the repository .TP \fB--enable-auto-merge\fR Enable auto-merge functionality .TP \fB--enable-discussions\fR Enable discussions in the repository .TP \fB--enable-issues\fR Enable issues in the repository .TP \fB--enable-merge-commit\fR Enable merging pull requests via merge commit .TP \fB--enable-projects\fR Enable projects in the repository .TP \fB--enable-rebase-merge\fR Enable merging pull requests via rebase .TP \fB--enable-squash-merge\fR Enable merging pull requests via squashed commit .TP \fB--enable-wiki\fR Enable wiki in the repository .TP \fB-h\fR, \fB--homepage\fR \fB\fR Repository home page URL .TP \fB--remove-topic\fR \fB\fR Remove repository topic .TP \fB--template\fR Make the repository available as a template repository .TP \fB--visibility\fR \fB\fR Change the visibility of the repository to {public,private,internal} .SH EXIT CODES 0: Successful execution .PP 1: Error .PP 2: Command canceled .PP 4: Authentication required .PP NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. .SH EXAMPLE .EX # enable issues and wiki gh repo edit --enable-issues --enable-wiki # disable projects gh repo edit --enable-projects=false .EE .SH SEE ALSO \fBgh-repo(1)\fR