1GH-BROWSE(1) GitHub CLI manual GH-BROWSE(1)
2
3
4
6 gh-browse - Open the repository in the browser
7
8
9
11 gh browse [<number> | <path>] [flags]
12
13
14
16 Open the GitHub repository in the web browser.
17
18
19
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
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 --settings
58 #=> Open repository settings
59
60 $ gh browse main.go:312
61 #=> Open main.go at line 312
62
63 $ gh browse main.go --branch main
64 #=> Open main.go in the main branch
65
66
67
68
69
71 gh(1)
72
73
74
75 Jun 2022 GH-BROWSE(1)