1GH-REPO-EDIT(1)                GitHub CLI manual               GH-REPO-EDIT(1)
2
3
4

NAME

6       gh-repo-edit - Edit repository settings
7
8
9

SYNOPSIS

11       gh repo edit [<repository>] [flags]
12
13
14

DESCRIPTION

16       Edit repository settings.
17
18
19       To toggle a setting off, use the --flag=false syntax.
20
21
22       Note  that changing repository visibility to private will cause loss of
23       stars and watchers.
24
25
26

OPTIONS

28       --add-topic <strings>
29              Add repository topic
30
31
32       --allow-forking
33              Allow forking of an organization repository
34
35
36       --allow-update-branch
37              Allow a pull request head branch that is behind its base  branch
38              to be updated
39
40
41       --default-branch <name>
42              Set the default branch name for the repository
43
44
45       --delete-branch-on-merge
46              Delete head branch when pull requests are merged
47
48
49       -d, --description <string>
50              Description of the repository
51
52
53       --enable-auto-merge
54              Enable auto-merge functionality
55
56
57       --enable-discussions
58              Enable discussions in the repository
59
60
61       --enable-issues
62              Enable issues in the repository
63
64
65       --enable-merge-commit
66              Enable merging pull requests via merge commit
67
68
69       --enable-projects
70              Enable projects in the repository
71
72
73       --enable-rebase-merge
74              Enable merging pull requests via rebase
75
76
77       --enable-squash-merge
78              Enable merging pull requests via squashed commit
79
80
81       --enable-wiki
82              Enable wiki in the repository
83
84
85       -h, --homepage <URL>
86              Repository home page URL
87
88
89       --remove-topic <strings>
90              Remove repository topic
91
92
93       --template
94              Make the repository available as a template repository
95
96
97       --visibility <string>
98              Change  the  visibility of the repository to {public,private,in‐
99              ternal}
100
101
102

EXAMPLE

104       # enable issues and wiki
105       gh repo edit --enable-issues --enable-wiki
106
107       # disable projects
108       gh repo edit --enable-projects=false
109
110
111
112
113

SEE ALSO

115       gh-repo(1)
116
117
118
119                                   Nov 2023                    GH-REPO-EDIT(1)
Impressum