From 124fb797bb968ca9c07237ec5aed93153cf8711f Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Sun, 1 Aug 2021 22:33:52 -0300 Subject: [PATCH] gh-browse: add page (#6281) --- pages/common/gh-browse.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/gh-browse.md diff --git a/pages/common/gh-browse.md b/pages/common/gh-browse.md new file mode 100644 index 0000000000..e614f3dc1f --- /dev/null +++ b/pages/common/gh-browse.md @@ -0,0 +1,36 @@ +# gh browse + +> Open a GitHub repository in the browser or print the URL. +> More information: . + +- 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`