1GH-REPO-EDIT(1) GitHub CLI manual GH-REPO-EDIT(1)
2
3
4
6 gh-repo-edit - Edit repository settings
7
8
9
11 gh repo edit [<repository>] [flags]
12
13
14
16 Edit repository settings.
17
18
19 To toggle a setting off, use the --flag=false syntax.
20
21
22
24 --add-topic <strings>
25 Add repository topic
26
27
28 --allow-forking
29 Allow forking of an organization repository
30
31
32 --allow-update-branch
33 Allow a pull request head branch that is behind its base branch
34 to be updated
35
36
37 --default-branch <name>
38 Set the default branch name for the repository
39
40
41 --delete-branch-on-merge
42 Delete head branch when pull requests are merged
43
44
45 -d, --description <string>
46 Description of the repository
47
48
49 --enable-auto-merge
50 Enable auto-merge functionality
51
52
53 --enable-issues
54 Enable issues in the repository
55
56
57 --enable-merge-commit
58 Enable merging pull requests via merge commit
59
60
61 --enable-projects
62 Enable projects in the repository
63
64
65 --enable-rebase-merge
66 Enable merging pull requests via rebase
67
68
69 --enable-squash-merge
70 Enable merging pull requests via squashed commit
71
72
73 --enable-wiki
74 Enable wiki in the repository
75
76
77 -h, --homepage <URL>
78 Repository home page URL
79
80
81 --remove-topic <strings>
82 Remove repository topic
83
84
85 --template
86 Make the repository available as a template repository
87
88
89 --visibility <string>
90 Change the visibility of the repository to {public,private,in‐
91 ternal}
92
93
94
96 # enable issues and wiki
97 gh repo edit --enable-issues --enable-wiki
98
99 # disable projects
100 gh repo edit --enable-projects=false
101
102
103
104
105
107 gh-repo(1)
108
109
110
111 Jan 2023 GH-REPO-EDIT(1)