1GH-BROWSE(1)                   GitHub CLI manual                  GH-BROWSE(1)
2
3
4

NAME

6       gh-browse - Open the repository in the browser
7
8
9

SYNOPSIS

11       gh browse [<number> | <path>] [flags]
12
13
14

DESCRIPTION

16       Open the GitHub repository in the web browser.
17
18
19

OPTIONS

21       -b, --branch <string>
22              Select another branch by passing in the branch name
23
24
25       -c, --commit
26              Open the last commit
27
28
29       -n, --no-browser
30              Print destination URL instead of opening the browser
31
32
33       -p, --projects
34              Open repository projects
35
36
37       -R, --repo <[HOST/]OWNER/REPO>
38              Select another repository using the [HOST/]OWNER/REPO format
39
40
41       -s, --settings
42              Open repository settings
43
44
45       -w, --wiki
46              Open repository wiki
47
48
49

EXAMPLE

51              $ gh browse
52              #=> Open the home page of the current repository
53
54              $ gh browse 217
55              #=> Open issue or pull request 217
56
57              $ gh browse 77507cd94ccafcf568f8560cfecde965fcfa63
58              #=> Open commit page
59
60              $ gh browse --settings
61              #=> Open repository settings
62
63              $ gh browse main.go:312
64              #=> Open main.go at line 312
65
66              $ gh browse main.go --branch main
67              #=> Open main.go in the main branch
68
69
70
71
72

SEE ALSO

74       gh(1)
75
76
77
78                                   Jan 2023                       GH-BROWSE(1)
Impressum