1GH-REPO-VIEW(1) GitHub CLI manual GH-REPO-VIEW(1)
2
3
4
6 gh-repo-view - View a repository
7
8
9
11 gh repo view [<repository>] [flags]
12
13
14
16 Display the description and the README of a GitHub repository.
17
18
19 With no argument, the repository for the current directory is dis‐
20 played.
21
22
23 With '--web', open the repository in a web browser instead.
24
25
26 With '--branch', view a specific branch of the repository.
27
28
29
31 -b, --branch <string>
32 View a specific branch of the repository
33
34
35 -q, --jq <expression>
36 Filter JSON output using a jq expression
37
38
39 --json <fields>
40 Output JSON with the specified fields
41
42
43 -t, --template <string>
44 Format JSON output using a Go template
45
46
47 -w, --web
48 Open a repository in the browser
49
50
51
53 gh-repo(1)
54
55
56
57 Jun 2022 GH-REPO-VIEW(1)