From d52366d8c9035a29131f6ce5f118424d18e61e15 Mon Sep 17 00:00:00 2001 From: Tom Ritchford Date: Mon, 29 Jul 2019 15:18:33 +0200 Subject: [PATCH] Document flags to git-open --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 01202d2..e125f8b 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,20 @@ Type `git open` to open the repo website (GitHub, GitLab, Bitbucket) in your bro ```sh git open [remote-name] [branch-name] + # Open the page for this branch on the repo website + +git open --commit +git open -c + # Open the current commit in the repo website git open --issue +git open -i + # If this branch is named like issue/#123, this will open the corresponding + # issue in the repo website + +git open --print +git open -p + # Only print the url at the terminal, but don't open it ``` (`git open` works with these [hosted repo providers](#supported-remote-repositories), `git open --issue` currently only works with GitHub, Visual Studio Team Services and Team Foundation Server)