1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/gh-browse.md

37 lines
973 B
Markdown
Raw Normal View History

2021-08-01 22:33:52 -03:00
# gh browse
> Open a GitHub repository in the browser or print the URL.
> More information: <https://cli.github.com/manual/gh_browse>.
- Open the homepage of the current repository in the default web browser:
`gh browse`
- Open the homepage of a specific repository in the default web browser:
`gh browse {{owner}}/{{repository}}`
- Open the settings page of the current repository in the default web browser:
2025-04-28 19:45:37 +03:00
`gh browse {{[-s|--settings]}}`
2021-08-01 22:33:52 -03:00
- Open the wiki of the current repository in the default web browser:
2025-04-28 19:45:37 +03:00
`gh browse {{[-w|--wiki]}}`
2021-08-01 22:33:52 -03:00
- Open a specific issue or pull request in the web browser:
`gh browse {{issue_number|pull_request_number}}`
2021-08-01 22:33:52 -03:00
- Open a specific branch in the web browser:
2025-04-28 19:45:37 +03:00
`gh browse {{[-b|--branch]}} {{branch_name}}`
2021-08-01 22:33:52 -03:00
- Open a specific file or directory of the current repository in the web browser:
`gh browse {{path/to/file_or_directory}}`
2021-08-01 22:33:52 -03:00
- Print the destination URL without open the web browser:
2025-04-28 19:45:37 +03:00
`gh browse {{[-n|--no-browser]}}`