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

NAME

6       gh-repo-set-default - Configure default repository for this directory
7
8
9

SYNOPSIS

11       gh repo set-default [<repository>] [flags]
12
13
14

DESCRIPTION

16       This  command  sets  the default remote repository to use when querying
17       the GitHub API for the locally cloned repository.
18
19
20       gh uses the default repository for things like:
21
22
23              • viewing and creating pull requests
24
25              • viewing and creating issues
26
27              • viewing and creating releases
28
29              • working with Actions
30
31              • adding repository and environment secrets
32
33
34
35

OPTIONS

37       -u, --unset
38              unset the current default repository
39
40
41       -v, --view
42              view the current default repository
43
44
45

EXAMPLE

47       Interactively select a default repository:
48       $ gh repo set-default
49
50       Set a repository explicitly:
51       $ gh repo set-default owner/repo
52
53       View the current default repository:
54       $ gh repo set-default --view
55
56       Show more repository options in the interactive picker:
57       $ git remote add newrepo https://github.com/owner/repo
58       $ gh repo set-default
59
60
61
62
63

SEE ALSO

65       gh-repo(1)
66
67
68
69                                   Nov 2023             GH-REPO-SET-DEFAULT(1)
Impressum