1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

gh-browse: add page (#6281)

This commit is contained in:
Axel Navarro 2021-08-01 22:33:52 -03:00 committed by GitHub
parent 73bf6f0de8
commit 124fb797bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

36
pages/common/gh-browse.md Normal file
View file

@ -0,0 +1,36 @@
# 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:
`gh browse --settings`
- Open the wiki of the current repository in the default web browser:
`gh browse --wiki`
- Open a specific issue or pull request in the web browser:
`gh browse {{issue_or_pull_request_number}}`
- Open a specific branch in the web browser:
`gh browse --branch {{branch_name}}`
- Open a specific file or directory of the current repository in the web browser:
`gh browse {{path_from_root_of_repository}}`
- Print the destination URL without open the web browser:
`gh browse --no-browser`