You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when you run hub browse it will open the browse and go to the page of the repo under which the command is run at, and this is cool. But when you try hub browse wiki/issue/commit the command cannot determine the exact repo page to go for you automatically. You can do hub browse username/reponame commit to get it work but it's annoying and unproductive, and you can't even config them in a file since you could probably run that command under different repos.
Ideal it should make the decision for you, is this something hard to implement? Really hope to have this feature 😄
The text was updated successfully, but these errors were encountered:
@linesh-simplicity Here's how hub browse work as far as I know:
hub browse - open current repository
hub browse a/b - open a/b repository
hub browse a/b issues- open issues in a/b repository
hub browse -- issues - open issues in current repository
So the first argument after hub browse is the repository you want to browse. It defaults to the current one. However if you want to browse a specific section within the current repository you need to pass -- as repository name so the command will know to skip the repository argument. This is a common convention in various Unix commands including Git and it is documented in the hub manual.
git browse [-u] [[USER/]REPOSITORY] [SUBPAGE]
Open repository's GitHub page in the system's default web browser using open(1) or the BROWSER env variable. If the repository isn't specified, browse opens the page of the repository found in the
current directory. If SUBPAGE is specified, the browser will open on the specified subpage: one of "wiki", "commits", "issues" or other (the default is "tree"). A specific commit in the default repos-
itory can be opened with git browse -- commit/<COMMIT>. With -u, outputs the URL rather than opening the browser.
Currently when you run
hub browse
it will open the browse and go to the page of the repo under which the command is run at, and this is cool. But when you tryhub browse wiki/issue/commit
the command cannot determine the exact repo page to go for you automatically. You can dohub browse username/reponame commit
to get it work but it's annoying and unproductive, and you can't even config them in a file since you could probably run that command under different repos.Ideal it should make the decision for you, is this something hard to implement? Really hope to have this feature 😄
The text was updated successfully, but these errors were encountered: